Skip to content

Commit 949bb5c

Browse files
authored
[CI] Fix CI checks (#553)
1 parent aab74c1 commit 949bb5c

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

.github/workflows/pr-test.yml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -212,8 +212,7 @@ jobs:
212212
ssim-test:
213213
needs: change-filter
214214
if: >-
215-
(github.event_name != 'workflow_dispatch' && github.event.pull_request.draft == false) ||
216-
(github.event_name == 'workflow_dispatch' && github.event.inputs.run_ssim_test == 'true')
215+
github.event_name != 'workflow_dispatch' || (github.event_name == 'workflow_dispatch' && github.event.inputs.run_ssim_test == 'true')
217216
strategy:
218217
fail-fast: false
219218
matrix:
@@ -239,7 +238,7 @@ jobs:
239238
training-test:
240239
needs: change-filter
241240
if: >-
242-
(github.event_name != 'workflow_dispatch' && github.event.pull_request.draft == false) ||
241+
(github.event_name != 'workflow_dispatch' && needs.change-filter.outputs.training-test == 'true') ||
243242
(github.event_name == 'workflow_dispatch' && github.event.inputs.run_training_test == 'true')
244243
uses: ./.github/workflows/runpod-test.yml
245244
with:
@@ -259,7 +258,7 @@ jobs:
259258
training-test-VSA:
260259
needs: change-filter
261260
if: >-
262-
(github.event_name != 'workflow_dispatch' && github.event.pull_request.draft == false) ||
261+
(github.event_name != 'workflow_dispatch' && needs.change-filter.outputs.training-test-VSA == 'true') ||
263262
(github.event_name == 'workflow_dispatch' && github.event.inputs.run_training_test_VSA == 'true')
264263
uses: ./.github/workflows/runpod-test.yml
265264
with:
@@ -279,7 +278,7 @@ jobs:
279278
inference-test-STA:
280279
needs: change-filter
281280
if: >-
282-
(github.event_name != 'workflow_dispatch' && github.event.pull_request.draft == false) ||
281+
(github.event_name != 'workflow_dispatch' && needs.change-filter.outputs.inference-test-STA == 'true') ||
283282
(github.event_name == 'workflow_dispatch' && github.event.inputs.run_inference_test_STA == 'true')
284283
uses: ./.github/workflows/runpod-test.yml
285284
with:
@@ -298,7 +297,7 @@ jobs:
298297
precision-test-STA:
299298
needs: change-filter
300299
if: >-
301-
(github.event_name != 'workflow_dispatch' && github.event.pull_request.draft == false) ||
300+
(github.event_name != 'workflow_dispatch' && needs.change-filter.outputs.precision-test-STA == 'true') ||
302301
(github.event_name == 'workflow_dispatch' && github.event.inputs.run_precision_test_STA == 'true')
303302
uses: ./.github/workflows/runpod-test.yml
304303
with:
@@ -317,7 +316,7 @@ jobs:
317316
precision-test-VSA:
318317
needs: change-filter
319318
if: >-
320-
(github.event_name != 'workflow_dispatch' && github.event.pull_request.draft == false) ||
319+
(github.event_name != 'workflow_dispatch' && needs.change-filter.outputs.precision-test-VSA == 'true') ||
321320
(github.event_name == 'workflow_dispatch' && github.event.inputs.run_precision_test_VSA == 'true')
322321
uses: ./.github/workflows/runpod-test.yml
323322
with:

0 commit comments

Comments
 (0)