-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4 from m-tmatma/m-tmatma-patch-1
add pmeier/pytest-results-action
- Loading branch information
Showing
1 changed file
with
26 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|