Skip to content

Commit 2058f31

Browse files
committed
Run all the tests on merge commits
1 parent 5fdf7b6 commit 2058f31

File tree

1 file changed

+47
-0
lines changed

1 file changed

+47
-0
lines changed

.github/workflows/main-checks.yml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: Main Branch Tests
2+
on:
3+
push:
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+
- uses: actions/checkout@v4
22+
23+
- name: Set up CUDA environment
24+
run: |
25+
echo "LD_LIBRARY_PATH=/usr/local/cuda/lib64:$LD_LIBRARY_PATH" >> $GITHUB_ENV
26+
27+
- name: Create conda environment
28+
uses: mamba-org/setup-micromamba@v1
29+
with:
30+
environment-file: conda/environment.yml
31+
environment-name: httomo
32+
post-cleanup: 'all'
33+
init-shell: bash
34+
35+
- name: Download test data from Zenodo
36+
run: |
37+
chmod +x ./.scripts/download_zenodo.py
38+
./.scripts/download_zenodo.py zenodo-tests/large_data_archive
39+
40+
- name: Install httomolibgpu
41+
run: |
42+
pip install .[dev]
43+
micromamba list
44+
45+
- name: Run all tests (including Zenodo)
46+
run: |
47+
pytest tests/ zenodo-tests/

0 commit comments

Comments
 (0)