Skip to content
This repository was archived by the owner on May 7, 2026. It is now read-only.

Commit 0c41dbd

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 0c41dbd

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

.github/workflows/test_and_release.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ name: test_and_release
55

66
on: [ push, pull_request]
77

8+
permissions:
9+
checks: write
10+
811
jobs:
912
build:
1013

@@ -57,7 +60,12 @@ jobs:
5760
- name: Test
5861
run: |
5962
python setup.py build
60-
nose2 -v --pretty-assert
63+
nose2 -v --pretty-assert --plugin nose2.plugins.junitxml --junit-xml
64+
- name: Publish Test Report
65+
uses: mikepenz/action-junit-report@v3
66+
if: success() || failure() # always run
67+
with:
68+
report_paths: 'nose2-junit.xml'
6169

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

0 commit comments

Comments
 (0)