-
-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Uploads the HTML coverage report as an artifact
- Loading branch information
Showing
1 changed file
with
7 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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] | ||
|