Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use pytest-cov to allow external contributors to see coverage #363

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pytest hypothesis pandas coverage cython
pip install coverage cython hypothesis pandas pytest pytest-cov

- name: Generate cython
run: |
Expand All @@ -33,9 +33,7 @@ jobs:

- name: Test with pytest and generate coverage info
run: |
PYTHONPATH=$(pwd)/src coverage run -m pytest tests
coverage xml
coverage report
PYTHONPATH=$(pwd)/src pytest --cov=./src --cov-report=xml tests

- uses: codecov/codecov-action@v4
with:
Expand Down