Skip to content

Commit

Permalink
Add pytest summary into github CI.
Browse files Browse the repository at this point in the history
  • Loading branch information
baterflyrity committed Dec 7, 2023
1 parent 16ddb8d commit a01126a
Showing 1 changed file with 24 additions and 1 deletion.
25 changes: 24 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,27 @@ jobs:
name: Test with pytest
run: |
cd tests
pytest
pytest --junit-xml=test-results.xml
-
name: Surface failing tests
if: always()
uses: pmeier/pytest-results-action@main
with:
# A list of JUnit XML files, directories containing the former, and wildcard
# patterns to process.
# See @actions/glob for supported patterns.
path: tests/test-results.xml

# Add a summary of the results at the top of the report
# Default: true
summary: true

# Select which results should be included in the report.
# Follows the same syntax as
# `pytest -r`
# Default: fEX
display-options: fEX

# Fail the workflow if no JUnit XML was found.
# Default: true
fail-on-empty: true

0 comments on commit a01126a

Please sign in to comment.