fix bug in issue #97 #208
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Python Package using Conda | |
on: [push, pull_request] | |
jobs: | |
build-linux: | |
runs-on: ubuntu-latest | |
strategy: | |
max-parallel: 5 | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python 3.7 | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.7 | |
- name: Install dependencies | |
run: | | |
sudo apt install libcurl4-openssl-dev | |
$CONDA/bin/conda env update --name base --file environment.yml | |
$CONDA/bin/pip install . | |
$CONDA/bin/pip install pytest-cov | |
- name: Test with pytest | |
run: | | |
export PATH=$CONDA/bin:$PATH | |
$CONDA/bin/conda install --yes pytest | |
$CONDA/bin/conda install -c conda-forge --yes pytest-tornasync | |
$CONDA/bin/pytest --cov=./ tests/ --cov-report=xml | |
- name: "Upload coverage to Codecov" | |
uses: codecov/codecov-action@v1 | |
with: | |
fail_ci_if_error: true | |