From 02267fb391a424539d6848c55eb3438da42fab14 Mon Sep 17 00:00:00 2001 From: Hong Chen Date: Wed, 15 Jan 2025 13:50:39 -0600 Subject: [PATCH] Added the workaround for GitHub test report v1 to work with action v4. 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. --- .github/workflows/report_alt_linux_distros.yml | 13 +++++++++++-- .github/workflows/report_linux.yml | 13 +++++++++++-- .github/workflows/report_linux_py2.yml | 13 +++++++++++-- .github/workflows/report_macos.yml | 13 +++++++++++-- 4 files changed, 44 insertions(+), 8 deletions(-) diff --git a/.github/workflows/report_alt_linux_distros.yml b/.github/workflows/report_alt_linux_distros.yml index 7ca302cce..81511151e 100644 --- a/.github/workflows/report_alt_linux_distros.yml +++ b/.github/workflows/report_alt_linux_distros.yml @@ -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 diff --git a/.github/workflows/report_linux.yml b/.github/workflows/report_linux.yml index 907dc2b42..45f0b0343 100644 --- a/.github/workflows/report_linux.yml +++ b/.github/workflows/report_linux.yml @@ -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 diff --git a/.github/workflows/report_linux_py2.yml b/.github/workflows/report_linux_py2.yml index 952e4a2a3..7b9021a69 100644 --- a/.github/workflows/report_linux_py2.yml +++ b/.github/workflows/report_linux_py2.yml @@ -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 diff --git a/.github/workflows/report_macos.yml b/.github/workflows/report_macos.yml index 03b706c1a..9a5ff3093 100644 --- a/.github/workflows/report_macos.yml +++ b/.github/workflows/report_macos.yml @@ -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