Skip to content

Commit

Permalink
Fix code coverage generation in CI workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
SeanBryan51 committed Mar 21, 2024
1 parent 839dd66 commit 59910ed
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,11 @@ jobs:
- name: Test with pytest
run: |
conda install pytest-cov
pytest
- name: Generate coverage reports
run: |
conda remove --force benchcab
pip install -e .
pytest --cov=./ --cov-report=xml
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
Expand Down
3 changes: 3 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ addopts =
--ignore docs/conf.py
--import-mode=importlib

[coverage:report]
include = src/*

[options]
package_dir=
=src
Expand Down

0 comments on commit 59910ed

Please sign in to comment.