Skip to content

Commit

Permalink
Add coverage reports
Browse files Browse the repository at this point in the history
  • Loading branch information
gibsramen committed Oct 4, 2023
1 parent 3790c54 commit 32e37f6
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,16 +39,16 @@ jobs:

- name: Install conda packages
shell: bash -l {0}
run: mamba install -c conda-forge biom-format patsy pytest xarray scikit-bio flake8 arviz cmdstanpy
run: mamba install -c conda-forge biom-format patsy pytest xarray scikit-bio flake8 arviz cmdstanpy pytest-cov

- name: Install BIRDMAn
shell: bash -l {0}
run: pip install -e .[dev]

- name: Check style
shell: bash -l {0}
run: flake8 birdman/*.py tests/*.py setup.py
run: make stylecheck

- name: Run tests
shell: bash -l {0}
run: pytest --disable-pytest-warnings
run: make test
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,4 @@ tests/custom_model
/build
docs/_build
tags
.coverage*
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ stylecheck:
flake8 birdman/*.py tests/*.py setup.py

pytest:
pytest tests
pytest --cov-report term-missing --cov=birdman --cov-branch tests

documentation:
cd docs && make html

0 comments on commit 32e37f6

Please sign in to comment.