Skip to content

Commit 4efbd27

Browse files
committed
Run tests on the CI
1 parent 2fc669d commit 4efbd27

File tree

1 file changed

+44
-0
lines changed

1 file changed

+44
-0
lines changed
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: Test Httomo Backends
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- main
7+
push:
8+
branches:
9+
- main
10+
11+
jobs:
12+
iris-gpu:
13+
runs-on: iris-gpu
14+
container:
15+
image: nvidia/cuda:11.6.2-devel-ubi8
16+
env:
17+
NVIDIA_VISIBLE_DEVICES: ${{ env.NVIDIA_VISIBLE_DEVICES }}
18+
19+
defaults:
20+
run:
21+
shell: bash -l {0}
22+
23+
steps:
24+
- name: Checkout repository code
25+
uses: actions/checkout@v4
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_backends
32+
post-cleanup: 'all'
33+
init-shell: bash
34+
35+
- name: Install httomo-backends
36+
run: |
37+
micromamba activate httomo_backends
38+
pip install httomolibgpu httomo-backends
39+
pip install .
40+
micromamba list
41+
42+
- name: Run tests
43+
run: |
44+
pytest tests/

0 commit comments

Comments
 (0)