Skip to content

Merge pull request #12 from JGCRI/dev #85

Merge pull request #12 from JGCRI/dev

Merge pull request #12 from JGCRI/dev #85

Workflow file for this run

name: "tests"
on:
push:
branches:
- '**'
pull_request:
branches:
- '**'
jobs:
tests:
runs-on: ubuntu-latest
defaults:
run:
shell: bash -el {0}
steps:
- uses: actions/checkout@v4
- uses: conda-incubator/setup-miniconda@v3
with:
activate-environment: anaconda-client-env
environment-file: etc/environment.yml
python-version: 3.9
condarc-file: etc/condarc.yml
auto-activate-base: false
- run: |
conda info
conda list
- name: Test with pytest
run: |
python -m pip install --upgrade pip
pip install .
pip install .[test]
pytest --cov=./ --cov-report=xml
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
with:
file: ./coverage.xml
fail_ci_if_error: true