-
Notifications
You must be signed in to change notification settings - Fork 24
50 lines (48 loc) · 1.23 KB
/
tests.yml
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
name: test
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up python 3.11
uses: actions/setup-python@v3
with:
python-version: "3.11"
- name: debug
run: |
pwd
ls
- uses: mpi4py/setup-mpi@v1
- name: Install dependencies
run: |
#sudo apt-get install libopenmpi-dev
pip install numpy numba h5py matplotlib scipy pytest colorama mpi4py ngsolve distinctipy
pip list
pip install -e .
- name: Patch Numba
run : |
bash .github/workflows/patch.sh
- name: Unit Test
run: |
pytest
- name: Regression Test - Python
run: |
cd test/regression
python run.py
- name: Regression Test - MPI
run: |
cd test/regression
python run.py --mpiexec=4
python run.py --mpiexec=2
- name: Regression Test - Numba
run: |
cd test/regression
python run.py --mode=numba
- name: Regression Test - Numba and MPI
run: |
cd test/regression
python run.py --mode=numba --mpiexec=4
python run.py --mode=numba --mpiexec=2
# TODO: Performance test
# TODO: GPU test