diff --git a/.github/actions/run-python-test-set/action.yml b/.github/actions/run-python-test-set/action.yml index 7139d37be9..1c65244ef4 100644 --- a/.github/actions/run-python-test-set/action.yml +++ b/.github/actions/run-python-test-set/action.yml @@ -133,6 +133,7 @@ runs: fi PERF_REPORT_DIR="$(realpath test_runner/perf-report-local)" + echo "PERF_REPORT_DIR=${PERF_REPORT_DIR}" >> ${GITHUB_ENV} rm -rf $PERF_REPORT_DIR TEST_SELECTION="test_runner/${{ inputs.test_selection }}" @@ -209,11 +210,12 @@ runs: --verbose \ -rA $TEST_SELECTION $EXTRA_PARAMS - if [[ "${{ inputs.save_perf_report }}" == "true" ]]; then - export REPORT_FROM="$PERF_REPORT_DIR" - export REPORT_TO="$PLATFORM" - scripts/generate_and_push_perf_report.sh - fi + - name: Upload performance report + if: ${{ !cancelled() && inputs.save_perf_report == 'true' }} + shell: bash -euxo pipefail {0} + run: | + export REPORT_FROM="${PERF_REPORT_DIR}" + scripts/generate_and_push_perf_report.sh - name: Upload compatibility snapshot # Note, that we use `github.base_ref` which is a target branch for a PR