-
Notifications
You must be signed in to change notification settings - Fork 5
76 lines (64 loc) · 2.26 KB
/
ngsPETSc.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
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
# .github/workflows/app.yaml
name: ngsPETSc tests
on:
push:
branches-ignore:
- 'no-ci/*'
schedule:
- cron: '30 10 7,14,21,28 * *'
jobs:
ngsolve:
runs-on: ubuntu-latest
container: urzerbinati/ngspetsc:latest
timeout-minutes: 30
steps:
- name: Check out repository code
uses: actions/checkout@v2
- name: Install ngsPETSc
run: |
python -m pip install .
- name: Check formatting
run: |
make lint
make lint_test
- name: Run test suite in serial
run: |
pytest -v tests/test_env.py
pytest -v tests/test_vec.py
pytest -v tests/test_mat.py
pytest -v tests/test_plex.py
pytest -v tests/test_ksp.py
pytest -v tests/test_pc.py
pytest -v tests/test_eps.py
pytest -v tests/test_snes.py
- name: Run test suite in parallel
run: |
mpirun --allow-run-as-root -n 2 pytest -v --with-mpi tests/test_env.py
mpirun --allow-run-as-root -n 2 pytest -v --with-mpi tests/test_vec.py
mpirun --allow-run-as-root -n 2 pytest -v --with-mpi tests/test_mat.py
mpirun --allow-run-as-root -n 2 pytest -v --with-mpi tests/test_plex.py
mpirun --allow-run-as-root -n 2 pytest -v --with-mpi tests/test_ksp.py
mpirun --allow-run-as-root -n 2 pytest -v --with-mpi tests/test_pc.py
mpirun --allow-run-as-root -n 2 pytest -v --with-mpi tests/test_eps.py
mpirun --allow-run-as-root -n 2 pytest -v --with-mpi tests/test_snes.py
fenicsx:
runs-on: ubuntu-latest
container: dolfinx/dolfinx:latest
timeout-minutes: 30
steps:
- name: Check out repository code
uses: actions/checkout@v2
- name: Install Netgen and ngsPETSc
run: |
pip3 install netgen-mesher \
&& pip3 install pylint \
&& export PYTHONPATH=$PYTHONPATH:/usr/local/lib/python3.10/site-packages \
&& echo "PYTHONPATH=$PYTHONPATH" >> $GITHUB_ENV \
&& NGSPETSC_NO_INSTALL_REQUIRED=ON pip install .
- name: Check formatting
run: |
make lint
make lint_test
- name: Run test suite in serial
run: |
pytest -v tests/test_fenicsx.py