Skip to content

Commit 63ac023

Browse files
authored
Add label-based conditions for CI jobs
Add conditional checks to skip CI jobs based on labels.
1 parent fa84cd5 commit 63ac023

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

.github/workflows/CI.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ on:
99

1010
jobs:
1111
test-cpu-github:
12+
if: ${{ ! contains(github.event.pull_request.labels.*.name, 'run ci cpu') }}
1213
uses: control-toolbox/CTActions/.github/workflows/ci.yml@main
1314
with:
1415
versions: '["1.12"]'
@@ -20,11 +21,12 @@ jobs:
2021

2122
# Job pour le runner self-hosted kkt (GPU/CUDA)
2223
test-gpu-kkt:
24+
if: ${{ ! contains(github.event.pull_request.labels.*.name, 'run ci gpu') }}
2325
uses: control-toolbox/CTActions/.github/workflows/ci.yml@main
2426
with:
2527
versions: '["1"]'
2628
runs_on: '[["kkt"]]'
2729
runner_type: 'self-hosted'
2830
use_ct_registry: false
2931
secrets:
30-
SSH_KEY: ${{ secrets.SSH_KEY }}
32+
SSH_KEY: ${{ secrets.SSH_KEY }}

0 commit comments

Comments
 (0)