Skip to content

Commit 994f1fe

Browse files
authored
Run a subset of backend test suite on pull (#18426)
### Summary Run a subset of operator and model tests on pull. This should help keep these jobs healthy and give better signal.
1 parent 765660b commit 994f1fe

5 files changed

Lines changed: 25 additions & 26 deletions

File tree

.github/workflows/test-backend-arm.yml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,11 @@ on:
55
- cron: 0 2 * * *
66
push:
77
branches:
8+
- main
89
- release/*
910
tags:
1011
- ciflow/nightly/*
1112
pull_request:
12-
paths:
13-
- .github/workflows/test-backend-arm.yml
14-
- .github/workflows/_test_backend.yml
15-
- .ci/scripts/test_backend.sh
16-
- backends/test/suite/flow.py
17-
- backends/test/suite/flows/arm.py
1813
workflow_dispatch:
1914

2015
concurrency:
@@ -26,7 +21,10 @@ jobs:
2621
uses: ./.github/workflows/_test_backend.yml
2722
with:
2823
backend: arm
29-
flows: '["arm_tosa_fp", "arm_tosa_int", "arm_ethos_u55", "arm_ethos_u85", "arm_vgf_fp", "arm_vgf_int"]'
24+
flows: >-
25+
${{ github.event_name == 'pull_request'
26+
&& '["arm_tosa_fp", "arm_vgf_fp"]'
27+
|| '["arm_tosa_fp", "arm_tosa_int", "arm_ethos_u55", "arm_ethos_u85", "arm_vgf_fp", "arm_vgf_int"]' }}
3028
ref: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.sha }}
3129
timeout: 120
3230
run-linux: true

.github/workflows/test-backend-coreml.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,11 @@ on:
55
- cron: 0 2 * * *
66
push:
77
branches:
8+
- main
89
- release/*
910
tags:
1011
- ciflow/nightly/*
1112
pull_request:
12-
paths:
13-
- .github/workflows/test-backend-coreml.yml
14-
- .github/workflows/_test_backend.yml
1513
workflow_dispatch:
1614

1715
concurrency:
@@ -23,7 +21,10 @@ jobs:
2321
uses: ./.github/workflows/_test_backend.yml
2422
with:
2523
backend: coreml
26-
flows: '["coreml", "coreml_static_int8"]'
24+
flows: >-
25+
${{ github.event_name == 'pull_request'
26+
&& '["coreml"]'
27+
|| '["coreml", "coreml_static_int8"]' }}
2728
ref: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.sha }}
2829
timeout: 120
2930
run-macos: true

.github/workflows/test-backend-qnn.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,11 @@ on:
55
- cron: 0 2 * * *
66
push:
77
branches:
8+
- main
89
- release/*
910
tags:
1011
- ciflow/nightly/*
1112
pull_request:
12-
paths:
13-
- .github/workflows/test-backend-qnn.yml
14-
- .github/workflows/_test_backend.yml
1513
workflow_dispatch:
1614

1715
concurrency:
@@ -23,7 +21,10 @@ jobs:
2321
uses: ./.github/workflows/_test_backend.yml
2422
with:
2523
backend: qnn
26-
flows: '["qnn", "qnn_16a16w", "qnn_16a8w", "qnn_16a4w", "qnn_16a4w_block", "qnn_8a8w"]'
24+
flows: >-
25+
${{ github.event_name == 'pull_request'
26+
&& '["qnn"]'
27+
|| '["qnn", "qnn_16a16w", "qnn_16a8w", "qnn_16a4w", "qnn_16a4w_block", "qnn_8a8w"]' }}
2728
ref: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.sha }}
2829
timeout: 120
2930
run-linux: true

.github/workflows/test-backend-vulkan.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,11 @@ on:
55
- cron: 0 2 * * *
66
push:
77
branches:
8+
- main
89
- release/*
910
tags:
1011
- ciflow/nightly/*
1112
pull_request:
12-
paths:
13-
- .github/workflows/test-backend-vulkan.yml
14-
- .github/workflows/_test_backend.yml
1513
workflow_dispatch:
1614

1715
concurrency:
@@ -23,7 +21,10 @@ jobs:
2321
uses: ./.github/workflows/_test_backend.yml
2422
with:
2523
backend: vulkan
26-
flows: '["vulkan", "vulkan_static_int8_per_channel"]'
24+
flows: >-
25+
${{ github.event_name == 'pull_request'
26+
&& '["vulkan"]'
27+
|| '["vulkan", "vulkan_static_int8_per_channel"]' }}
2728
ref: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.sha }}
2829
timeout: 120
2930
run-linux: true

.github/workflows/test-backend-xnnpack.yml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,11 @@ on:
55
- cron: 0 2 * * *
66
push:
77
branches:
8+
- main
89
- release/*
910
tags:
1011
- ciflow/nightly/*
1112
pull_request:
12-
paths:
13-
- .github/workflows/test-backend-xnnpack.yml
14-
- .github/workflows/_test_backend.yml
15-
- .ci/scripts/test_backend.sh
16-
- backends/test/harness/**
17-
- backends/test/suite/**
1813
workflow_dispatch:
1914

2015
concurrency:
@@ -26,7 +21,10 @@ jobs:
2621
uses: ./.github/workflows/_test_backend.yml
2722
with:
2823
backend: xnnpack
29-
flows: '["xnnpack", "xnnpack_dynamic_int8_per_channel", "xnnpack_static_int8_per_channel", "xnnpack_static_int8_per_tensor"]'
24+
flows: >-
25+
${{ github.event_name == 'pull_request'
26+
&& '["xnnpack"]'
27+
|| '["xnnpack", "xnnpack_dynamic_int8_per_channel", "xnnpack_static_int8_per_channel", "xnnpack_static_int8_per_tensor"]' }}
3028
ref: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.sha }}
3129
timeout: 120
3230
run-linux: true

0 commit comments

Comments
 (0)