Skip to content

fix test bugs

fix test bugs #213

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.9
uses: actions/setup-python@v2
with:
python-version: 3.9
- name: Update Conda
run: |
$CONDA/bin/conda update -n base -c defaults conda --yes
- 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