Skip to content

Commit 61cbf89

Browse files
[Bench] Run benchmarks' integration tests only on PR (#20650)
1 parent 62397e8 commit 61cbf89

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

devops/actions/run-tests/benchmark/action.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -261,13 +261,14 @@ runs:
261261
${{ inputs.dry_run == 'true' && '--dry-run' || '' }} \
262262

263263
echo "::endgroup::"
264-
265-
# Run integration tests
266-
# NOTE: Each integration test prints its own group name as part of test script
267-
export LLVM_BENCHMARKS_UNIT_TESTING=1
268-
export COMPUTE_BENCHMARKS_BUILD_PATH=$WORKDIR/compute-benchmarks-build
269-
python3 ./devops/scripts/benchmarks/tests/test_integration.py
270264

265+
# Run benchmarks' integration tests
266+
# NOTE: Each integration test prints its own group name as part of test script
267+
if [ '${{ github.event_name == 'pull_request' }}' = 'true' ]; then
268+
export LLVM_BENCHMARKS_UNIT_TESTING=1
269+
export COMPUTE_BENCHMARKS_BUILD_PATH=$WORKDIR/compute-benchmarks-build
270+
python3 ./devops/scripts/benchmarks/tests/test_integration.py
271+
fi
271272
- name: Cache changes and upload github summary
272273
if: always()
273274
shell: bash

0 commit comments

Comments
 (0)