Skip to content

Commit

Permalink
Uploads the HTML coverage report as an artifact
Browse files Browse the repository at this point in the history
  • Loading branch information
stumpylog committed Feb 8, 2024
1 parent b603ab4 commit ae5d7e0
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,13 @@ jobs:
pip install -e .
- name: Run tests
run: |
pip install pytest
pip install pytest-cov
pytest --cov=./ --cov-report=xml
pytest --cov=./ --cov-report=xml --cov-report=html
- name: Upload HTML coverage report
uses: actions/upload-artifact@v4
with:
name: "HTML Coverage ${{ matrix.python-version }}"
path: "htmlcov"
retention-days: 7

- name: Upload Coverage to Codecov
uses: codecov/[email protected]
Expand Down

0 comments on commit ae5d7e0

Please sign in to comment.