Skip to content

Commit

Permalink
Added the workaround for GitHub test report v1 to work with action v4.
Browse files Browse the repository at this point in the history
Testing the workaround for GitHub test report v1 to work with action v4 and if not working, will have to change the GitHub action version to v3 while leaving GitHub artifact version as v4 as required.
  • Loading branch information
hchen99 committed Jan 15, 2025
1 parent 544b962 commit 02267fb
Show file tree
Hide file tree
Showing 4 changed files with 44 additions and 8 deletions.
13 changes: 11 additions & 2 deletions .github/workflows/report_alt_linux_distros.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,18 @@ jobs:

runs-on: ubuntu-latest
steps:
- uses: dorny/test-reporter@v1
- name: Checkout the repository
uses: actions/checkout@v4

- name: Download the artifact
uses: actions/download-artifact@v4
with:
name: Trick_${{matrix.cfg.os}}${{matrix.cfg.tag}}_py${{matrix.python}}
path: . # download the artifact in the current directory

- name: Report the test results
uses: dorny/test-reporter@v1
with:
artifact: Trick_${{matrix.cfg.os}}${{matrix.cfg.tag}}_py${{matrix.python}} # artifact name
name: Results_Trick_${{matrix.cfg.os}}${{matrix.cfg.tag}}_py${{matrix.python}} # Name of the check run which will be created
path: '*.xml' # Path to test results (inside artifact .zip)
reporter: java-junit # Format of test results
13 changes: 11 additions & 2 deletions .github/workflows/report_linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,18 @@ jobs:

runs-on: ubuntu-latest
steps:
- uses: dorny/test-reporter@v1
- name: Checkout the repository
uses: actions/checkout@v4

- name: Download the artifact
uses: actions/download-artifact@v4
with:
name: Trick_${{matrix.cfg.os}}${{matrix.cfg.tag}}_py${{matrix.python}}
path: . # download the artifact in the current directory

- name: Report the test results
uses: dorny/test-reporter@v1
with:
artifact: Trick_${{matrix.cfg.os}}${{matrix.cfg.tag}}_py${{matrix.python}} # artifact name
name: Results_Trick_${{matrix.cfg.os}}${{matrix.cfg.tag}}_py${{matrix.python}} # Name of the check run which will be created
path: '*.xml' # Path to test results (inside artifact .zip)
reporter: java-junit # Format of test results
13 changes: 11 additions & 2 deletions .github/workflows/report_linux_py2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,18 @@ jobs:

runs-on: ubuntu-latest
steps:
- uses: dorny/test-reporter@v1
- name: Checkout the repository
uses: actions/checkout@v4

- name: Download the artifact
uses: actions/download-artifact@v4
with:
name: Trick_${{matrix.cfg.os}}${{matrix.cfg.tag}}_py${{matrix.python}}
path: . # download the artifact in the current directory

- name: Report the test results
uses: dorny/test-reporter@v1
with:
artifact: Trick_${{matrix.cfg.os}}${{matrix.cfg.tag}}_py${{matrix.python}} # artifact name
name: Results_Trick_${{matrix.cfg.os}}${{matrix.cfg.tag}}_py${{matrix.python}} # Name of the check run which will be created
path: '*.xml' # Path to test results (inside artifact .zip)
reporter: java-junit # Format of test results
13 changes: 11 additions & 2 deletions .github/workflows/report_macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,18 @@ jobs:

runs-on: ubuntu-latest
steps:
- uses: dorny/test-reporter@v1
- name: Checkout the repository
uses: actions/checkout@v4

- name: Download the artifact
uses: actions/download-artifact@v4
with:
name: Trick_macos
path: . # download the artifact in the current directory

- name: Report the test results
uses: dorny/test-reporter@v1
with:
artifact: Trick_macos # artifact name
name: Results_Trick_macos # Name of the check run which will be created
path: '*.xml' # Path to test results (inside artifact .zip)
reporter: java-junit # Format of test results

0 comments on commit 02267fb

Please sign in to comment.