diff --git a/.github/workflows/t3000-model-perf-tests-impl.yaml b/.github/workflows/t3000-model-perf-tests-impl.yaml index f03f5fac6a8..4c6e1846445 100644 --- a/.github/workflows/t3000-model-perf-tests-impl.yaml +++ b/.github/workflows/t3000-model-perf-tests-impl.yaml @@ -64,21 +64,25 @@ jobs: id: check-perf-report if: ${{ !cancelled() }} run: | - ls -hal TODAY=$(date +%Y_%m_%d) PERF_REPORT_FILENAME_MODELS="Models_Perf_${TODAY}.csv" PERF_REPORT_FILENAME_CCL="CCL_Perf_${TODAY}.csv" - if [ -f "$PERF_REPORT_FILENAME_MODELS" ]; then - echo "Found Models Perf report: $PERF_REPORT_FILENAME_MODELS" - echo "perf_report_filename=$PERF_REPORT_FILENAME_MODELS" >> "$GITHUB_OUTPUT" - ls -hal "$PERF_REPORT_FILENAME_MODELS" - elif [ -f "$PERF_REPORT_FILENAME_CCL" ]; then - echo "Found CCL Perf report: $PERF_REPORT_FILENAME_CCL" - echo "perf_report_filename=$PERF_REPORT_FILENAME_CCL" >> "$GITHUB_OUTPUT" - ls -hal "$PERF_REPORT_FILENAME_CCL" + if [ "${{ matrix.test-group.tracy }}" == "true" ]; then + if [ -f "$PERF_REPORT_FILENAME_CCL" ]; then + echo "Found CCL Perf report: $PERF_REPORT_FILENAME_CCL" + echo "perf_report_filename=$PERF_REPORT_FILENAME_CCL" >> "$GITHUB_OUTPUT" + else + echo "No CCL perf report found for today." + exit 1 + fi else - echo "No perf report found." - exit 1 + if [ -f "$PERF_REPORT_FILENAME_MODELS" ]; then + echo "Found Models Perf report: $PERF_REPORT_FILENAME_MODELS" + echo "perf_report_filename=$PERF_REPORT_FILENAME_MODELS" >> "$GITHUB_OUTPUT" + else + echo "No Models perf report found for today." + exit 1 + fi fi - name: Upload perf report if: ${{ !cancelled() && steps.check-perf-report.conclusion == 'success' }}