File tree Expand file tree Collapse file tree 2 files changed +45
-10
lines changed
Expand file tree Collapse file tree 2 files changed +45
-10
lines changed Original file line number Diff line number Diff line change 1- name : httomolibgpu tests
1+ name : httomolibgpu quick tests
22on :
33 pull_request :
44 branches :
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/
Original file line number Diff line number Diff line change 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/
You can’t perform that action at this time.
0 commit comments