Skip to content

Commit 662b159

Browse files
committed
Run zenodo tests workflow only if label present
1 parent 2f21e30 commit 662b159

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

.github/workflows/httomolibgpu_zenodotests_iris.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
name: httomolibgpu zenodo tests
22
on:
33
pull_request:
4-
branches:
5-
- main
4+
types: [ labeled ]
65

76
jobs:
87
iris-gpu:
8+
if: ${{ github.event.label.name == 'run-zenodo-tests' }}
99
runs-on: iris-gpu
1010
container:
1111
image: nvidia/cuda:12.6.3-devel-ubi8
@@ -35,9 +35,7 @@ jobs:
3535
pip install .[dev]
3636
micromamba list
3737
38-
# Optional: Run Zenodo tests only if PR has a label
3938
- name: Download and run Zenodo tests
40-
if: contains(github.event.pull_request.labels.*.name, 'run-zenodo-tests')
4139
run: |
4240
chmod +x ./.scripts/download_zenodo.py
4341
./.scripts/download_zenodo.py zenodo-tests/large_data_archive

0 commit comments

Comments
 (0)