From efdd2aa38f4ad920adaaf46685f77886e49538bc Mon Sep 17 00:00:00 2001 From: Vladimir Milosevic <157983820+vmilosevic@users.noreply.github.com> Date: Wed, 30 Oct 2024 19:22:38 +0100 Subject: [PATCH] Upload perf report --- .github/workflows/build-and-test.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/build-and-test.yml index 81746765..68207655 100644 --- a/.github/workflows/build-and-test.yml +++ b/.github/workflows/build-and-test.yml @@ -75,6 +75,7 @@ jobs: echo "job-id=$JOB_ID" >> "$GITHUB_OUTPUT" echo "test_report_path=reports/report_$JOB_ID.xml" >> "$GITHUB_OUTPUT" + echo "perf_report_path=reports/forge-benchmark-e2e-mnist_$JOB_ID.json" >> "$GITHUB_OUTPUT" - name: Git safe dir run: git config --global --add safe.directory ${{ steps.strings.outputs.work-dir }} @@ -134,7 +135,7 @@ jobs: shell: bash run: | source env/activate - python forge/test/benchmark/benchmark.py -m mnist_linear -bs 1 -o forge-benchmark-e2e-mnist.json + python forge/test/benchmark/benchmark.py -m mnist_linear -bs 1 -o ${{ steps.strings.outputs.perf_report_path }} - name: Upload Test Report uses: actions/upload-artifact@v4 @@ -143,6 +144,13 @@ jobs: name: test-reports-${{ matrix.build.runs-on }} path: ${{ steps.strings.outputs.test_report_path }} + - name: Upload Perf Report + uses: actions/upload-artifact@v4 + if: success() || failure() + with: + name: perf-reports-${{ matrix.build.runs-on }} + path: ${{ steps.strings.outputs.perf_report_path }} + - name: Show Test Report uses: mikepenz/action-junit-report@v4 if: success() || failure()