Skip to content

Commit 8519cb9

Browse files
committed
separating zenofo job from quick tests
1 parent 460fd46 commit 8519cb9

File tree

2 files changed

+45
-10
lines changed

2 files changed

+45
-10
lines changed

.github/workflows/httomolibgpu_tests_run_iris.yml

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: httomolibgpu tests
1+
name: httomolibgpu quick tests
22
on:
33
pull_request:
44
branches:
@@ -36,12 +36,4 @@ jobs:
3636
3737
- name: Run unit tests on small data
3838
run: |
39-
pytest tests/
40-
41-
# Optional: Run Zenodo tests only if PR has a label
42-
- name: Download and run Zenodo tests
43-
if: contains(github.event.pull_request.labels.*.name, 'run-zenodo-tests')
44-
run: |
45-
chmod +x ./.scripts/download_zenodo.py
46-
./.scripts/download_zenodo.py zenodo-tests/large_data_archive
47-
pytest zenodo-tests/
39+
pytest tests/
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: httomolibgpu zenodo tests
2+
on:
3+
pull_request:
4+
branches:
5+
- main
6+
7+
jobs:
8+
iris-gpu:
9+
runs-on: iris-gpu
10+
container:
11+
image: nvidia/cuda:12.6.3-devel-ubi8
12+
env:
13+
NVIDIA_VISIBLE_DEVICES: ${{ env.NVIDIA_VISIBLE_DEVICES }}
14+
options: --gpus all --runtime=nvidia
15+
16+
defaults:
17+
run:
18+
shell: bash -l {0}
19+
20+
steps:
21+
- name: Checkout repository code
22+
uses: actions/checkout@v4
23+
24+
- name: Create conda environment
25+
uses: mamba-org/setup-micromamba@v1
26+
with:
27+
environment-file: conda/environment.yml
28+
environment-name: httomo
29+
post-cleanup: 'all'
30+
init-shell: bash
31+
32+
- name: Install httomolibgpu
33+
run: |
34+
pip install .[dev]
35+
micromamba list
36+
37+
# Optional: Run Zenodo tests only if PR has a label
38+
- name: Download and run Zenodo tests
39+
if: contains(github.event.pull_request.labels.*.name, 'run-zenodo-tests')
40+
run: |
41+
chmod +x ./.scripts/download_zenodo.py
42+
./.scripts/download_zenodo.py zenodo-tests/large_data_archive
43+
pytest zenodo-tests/

0 commit comments

Comments
 (0)