Skip to content

Commit

Permalink
Merge pull request #4 from m-tmatma/m-tmatma-patch-1
Browse files Browse the repository at this point in the history
add pmeier/pytest-results-action
  • Loading branch information
m-tmatma authored Apr 13, 2024
2 parents b2ccb21 + f7818f8 commit 56d833d
Showing 1 changed file with 26 additions and 1 deletion.
27 changes: 26 additions & 1 deletion .github/workflows/pytest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,29 @@ jobs:

- name: GitHub Action for pytest
uses: cclauss/[email protected]


- name: Run tests
run: 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: 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: Test results

0 comments on commit 56d833d

Please sign in to comment.