Skip to content

Commit c4b2299

Browse files
committed
Generate and publish JUnit test report
Using junit-report-action (documented at https://github.com/marketplace/actions/junit-report-action) and nose2 JUnit XML report plugin (documented at https://docs.nose2.io/en/latest/plugins/junitxml.html).
1 parent 980a045 commit c4b2299

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

.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 --junit-xml
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)