Skip to content

Commit

Permalink
Summarize the Pytest results.
Browse files Browse the repository at this point in the history
  • Loading branch information
VatsalJagani committed Mar 4, 2024
1 parent 83a43cd commit 4b8c4ca
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/py_unit_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,3 +48,18 @@ jobs:
path: junit/test-results.xml
# Use always() to always run this step to publish test results when there are test failures
if: ${{ always() }}

- name: Surface Test-Results
if: always()
uses: pmeier/pytest-results-action@main
with:
path: junit/test-results.xml
# (Optional) Add a summary of the results at the top of the report
summary: true
# (Optional) Select which results should be included in the report.
# Follows the same syntax as `pytest -r`
display-options: fEX
# (Optional) Fail the workflow if no JUnit XML was found.
fail-on-empty: true
# (Optional) Title of the test results section in the workflow summary
title: Pytest results

0 comments on commit 4b8c4ca

Please sign in to comment.