Skip to content

Commit

Permalink
CI: add code coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
VasudhaJha committed Dec 21, 2022
1 parent d26ac3b commit 7b0b0ce
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,10 @@ jobs:
run: |
pip install -e .
pip install '.[test]'
- name: Run tests
- name: Test and generate coverage report
run: |
pip list
pytest
pytest --cov=./tests --cov-report=xml --ignore=./brightest_path_lib/sandbox.py
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,6 @@
"brightest_path_lib.input"
]),
install_requires=["numpy"],
extras_require={"test": ["pytest", "scikit-image", "pooch"]},
extras_require={"test": ["pytest", "pytest-cov", "scikit-image", "pooch"]},
python_requires=">=3.7",
)

0 comments on commit 7b0b0ce

Please sign in to comment.