Skip to content

Commit 9c2092d

Browse files
committed
adding cpu testing pipeline
1 parent ee9916f commit 9c2092d

File tree

2 files changed

+60
-16
lines changed

2 files changed

+60
-16
lines changed
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: HTTomo framework tests
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- main
7+
push:
8+
branches:
9+
- main
10+
11+
jobs:
12+
tests-cpu:
13+
runs-on: ubuntu-latest
14+
15+
defaults:
16+
run:
17+
shell: bash -l {0}
18+
19+
steps:
20+
- name: Checkout repository code
21+
uses: actions/checkout@v4
22+
23+
- name: Create conda environment
24+
uses: mamba-org/setup-micromamba@v1
25+
with:
26+
environment-file: conda/environment-cpu.yml
27+
environment-name: httomo
28+
post-cleanup: 'all'
29+
init-shell: bash
30+
31+
- name: install httomo and httomo-backends
32+
run: |
33+
micromamba activate httomo
34+
pip install --no-deps httomo-backends
35+
pip install .
36+
micromamba list
37+
38+
- name: Run HTTomo framework tests (CPU)
39+
run: |
40+
pytest tests/

conda/environment-cpu.yml

Lines changed: 20 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,24 @@
11
name: httomo
22
channels:
33
- conda-forge
4-
- httomo
54
dependencies:
6-
- conda-forge::tomopy==1.15
7-
- httomo::httomolib==2.1
8-
- conda-forge::click>=8.1.3
9-
- conda-forge::mpi4py>=3.1
10-
- conda-forge::h5py=*=*mpi_openmpi*
11-
- conda-forge::pyyaml
12-
- conda-forge::numpy<=1.25
13-
- conda-forge::python
14-
- conda-forge::numexpr>=2.8.4
15-
- conda-forge::ipython
16-
- conda-forge::loguru
17-
- conda-forge::graypy
18-
- conda-forge::plumbum
19-
- conda-forge::tqdm
20-
- conda-forge::typing_extensions
5+
- scipy
6+
- pillow
7+
- click
8+
- numpy
9+
- graypy
10+
- h5py=*=*mpi_openmpi*
11+
- hdf5plugin
12+
- loguru
13+
- mpi4py
14+
- pyyaml
15+
- nvtx
16+
- python
17+
- plumbum
18+
- tqdm
19+
- typing_extensions
20+
- ipython
21+
- pytest
22+
- pytest-xdist
23+
- pytest-cov
24+
- pytest-mock

0 commit comments

Comments
 (0)