Skip to content

Commit

Permalink
generate pytest.xml coverage report
Browse files Browse the repository at this point in the history
  • Loading branch information
cyschneck committed Mar 23, 2024
1 parent fb1db6e commit 00d3d0a
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/pytests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,13 @@ jobs:
pip install -r requirements.txt
- name: Test with pytest and generate coverage reports
run: |
python -m pytest --cov
python -m pytest --cov=./centerline_width --cov-report=xml --junitxml=pytest.xml
- name: Upload test results
uses: actions/upload-artifact@v4
with:
name: Test results for ${{ matrix.os }}-${{ matrix.python-version }}
path: pytest.xml

- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v4.0.1
Expand Down

0 comments on commit 00d3d0a

Please sign in to comment.