ci: generate XML coverage report for codecov

This commit is contained in:
Fischer Moseley 2024-11-28 12:06:35 -08:00
parent 7015be8fe9
commit 642f6ddad0
2 changed files with 8 additions and 1 deletions

View File

@ -36,6 +36,13 @@ jobs:
source venv/bin/activate
make test
- uses: actions/upload-artifact@v4
with:
name: Coverage Report
path: |
.coverage
coverage.xml
- name: Upload results to Codecov
run: |
source venv/bin/activate

View File

@ -1,6 +1,6 @@
.PHONY: test format clean serve_docs
test:
python3 -m pytest --cov=.
python3 -m pytest --cov-report xml --cov=.
format:
python3 -m ruff check --select I --fix