Skip to content

Commit

Permalink
Save JUnit tests and upload them
Browse files Browse the repository at this point in the history
  • Loading branch information
simonkurtz-MSFT committed May 22, 2024
1 parent c50b739 commit 44501b2
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/python-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,14 @@ jobs:
continue-on-error: true
- name: Test with pytest
run: |
coverage run -m pytest -v && coverage html
coverage run -m pytest -v --junitxml=junit/test-results-${{ matrix.python-version }}.xml && coverage html
- name: Upload pytest test results
uses: actions/upload-artifact@v4
with:
name: pytest-results-${{ matrix.python-version }}
path: junit/test-results-${{ matrix.python-version }}.xml
# Use always() to always run this step to publish test results when there are test failures
if: ${{ always() }}
- name: Upload code coverage to GitHub Artifacts
uses: actions/upload-artifact@v4.3.3
with:
Expand Down

0 comments on commit 44501b2

Please sign in to comment.