Skip to content

Commit a4aa325

Browse files
committed
Generate and publish JUnit test report
Using junit-report-action, as documented in https://github.com/marketplace/actions/junit-report-action
1 parent 980a045 commit a4aa325

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/test_and_release.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,12 @@ jobs:
5757
- name: Test
5858
run: |
5959
python setup.py build
60-
nose2 -v --pretty-assert
60+
nose2 -v --pretty-assert --plugin nose2.plugins.junitxml
61+
- name: Publish Test Report
62+
uses: mikepenz/action-junit-report@v3
63+
if: success() || failure() # always run
64+
with:
65+
report_paths: 'nose2-junit.xml'
6166

6267
# https://github.com/actions/starter-workflows/blob/main/ci/python-publish.yml
6368
release:

0 commit comments

Comments
 (0)