-
Notifications
You must be signed in to change notification settings - Fork 0
77 lines (69 loc) · 1.97 KB
/
Copy pathtest.yml
File metadata and controls
77 lines (69 loc) · 1.97 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
name: Integration Tests
on:
push:
branches: [ devel ]
pull_request:
branches: [ main, devel ]
jobs:
test:
runs-on: ubuntu-latest
name: ${{ matrix.testcase }}
strategy:
matrix:
testcase:
- testcase01
- testcase02
- testcase03
- testcase04
- testcase05
- testcase06
- testcase07
- testcase08
- testcase09
- testcase10
- testcase11
- testcase12
- testcase13
- testcase14
- testcase15
- testcase16
- testcase17
- testcase18
fail-fast: false
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Setup Mamba
uses: conda-incubator/setup-miniconda@v3
with:
miniforge-version: latest
activate-environment: build-env
- name: Install dependencies
shell: bash -l {0}
run: |
mamba install -y -c conda-forge \
cmake make openmpi hdf5 eigen yaml-cpp \
fortran-compiler cxx-compiler zlib spdlog
pip install pytomoatt
- name: Build
shell: bash -l {0}
run: |
cmake -B build -DCMAKE_BUILD_TYPE=Release
make -C build -j$(nproc)
- name: Clone test cases
run: git clone https://github.com/xumi1993/SurfATT-tests.git ../SurfATT-tests
- name: Run ${{ matrix.testcase }}
shell: bash -l {0}
env:
NPROC: 2
run: |
SURFATT_BIN=$(realpath bin)
cd ../SurfATT-tests/${{ matrix.testcase }}
# Fix hardcoded binary path
sed -i "s|SRUFATT_HOME=.*|SRUFATT_HOME=${SURFATT_BIN}|" run_this_test.sh
# Fix hardcoded NPROC variable
sed -i "s|NPROC=.*|NPROC=${NPROC}|" run_this_test.sh
# Fix MAXIT to 3 for faster testing
sed -i "s|MAXIT=.*|MAXIT=3|" run_this_test.sh
bash run_this_test.sh