Skip to content

Commit

Permalink
Add report generation for JUNIT tests
Browse files Browse the repository at this point in the history
Signed-off-by: Travis F. Collins <[email protected]>
  • Loading branch information
tfcollins committed Dec 6, 2023
1 parent 0257a54 commit 1d9e73a
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,11 @@ jobs:
- name: Test
run: |
pytest -vs --cov=adi --scan-verbose --emu --junitxml="results.xml" -k 'not prod'
- name: Publish Test Report
uses: mikepenz/action-junit-report@v4
if: success() || failure() # always run even if the previous step fails
with:
report_paths: 'results.xml'

- name: Report coverage
if: (github.event_name != 'pull_request') && (matrix.python-version == 3.6)
Expand All @@ -67,6 +72,11 @@ jobs:
run: |
pip uninstall -y paramiko
pytest -vs --scan-verbose --emu --junitxml="results.xml" -k 'not prod'
- name: Publish Test Report
uses: mikepenz/action-junit-report@v4
if: success() || failure() # always run even if the previous step fails
with:
report_paths: 'results.xml'


Lint:
Expand Down

0 comments on commit 1d9e73a

Please sign in to comment.