Skip to content

Commit 5fdf7b6

Browse files
committed
Run Zenodo tests with a label
1 parent 98f2500 commit 5fdf7b6

File tree

1 file changed

+5
-10
lines changed

1 file changed

+5
-10
lines changed

.github/workflows/httomolibgpu_tests_run_iris.yml

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -36,15 +36,6 @@ jobs:
3636
post-cleanup: 'all'
3737
init-shell: bash
3838

39-
- name: Download test data from Zenodo
40-
run: |
41-
chmod +x ./.scripts/download_zenodo.py
42-
43-
./.scripts/download_zenodo.py zenodo-tests/large_data_archive
44-
45-
echo -e "\nDownloaded files:"
46-
ls -lh zenodo-tests/large_data_archive
47-
4839
- name: Install httomolibgpu
4940
run: |
5041
pip install .[dev]
@@ -54,6 +45,10 @@ jobs:
5445
run: |
5546
pytest tests/
5647
57-
- name: Run Zenodo tests
48+
# Optional: Run Zenodo tests only if PR has a label
49+
- name: Download and run Zenodo tests
50+
if: contains(github.event.pull_request.labels.*.name, 'run-zenodo-tests')
5851
run: |
52+
chmod +x ./.scripts/download_zenodo.py
53+
./.scripts/download_zenodo.py zenodo-tests/large_data_archive
5954
pytest zenodo-tests/

0 commit comments

Comments
 (0)