-
Notifications
You must be signed in to change notification settings - Fork 5
146 lines (122 loc) · 4.36 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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
# .github/workflows/app.yaml
name: ngsPETSc tests
on:
push:
branches-ignore:
- 'no-ci/*'
schedule:
- cron: '30 10 7,14,21,28 * *'
jobs:
lint:
runs-on: ubuntu-latest
container: urzerbinati/ngspetsc:latest
timeout-minutes: 3
steps:
- name: Check out repository code
uses: actions/checkout@v4
- name: Install ngsPETSc
run: |
python -m pip install .
pip install pylint
- name: Lint
run: |
make lint GITHUB_ACTIONS_FORMATTING=1
make lint_test GITHUB_ACTIONS_FORMATTING=1
ngsolve:
runs-on: ubuntu-latest
container: urzerbinati/ngspetsc:latest
timeout-minutes: 30
steps:
- name: Check out repository code
uses: actions/checkout@v4
- name: Install ngsPETSc
run: |
python -m pip install .
- 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:
image: dolfinx/dolfinx:nightly
options: --user root
timeout-minutes: 50
steps:
- name: Check out repository code
uses: actions/checkout@v4
- name: Install pytest
run: |
pip install pytest --break-system-packages
- name: Install Netgen and ngsPETSc
run: |
pip install netgen-mesher --break-system-packages
export PYTHONPATH=$PYTHONPATH:/usr/local/lib/python3.10/site-packages
echo "PYTHONPATH=$PYTHONPATH" >> $GITHUB_ENV
pip install -e . --break-system-packages
- name: Run test suite in serial
run: |
pytest -v tests/test_fenicsx.py
firedrake:
runs-on: ubuntu-latest
container:
image: firedrakeproject/firedrake-vanilla:latest
options: --user root
timeout-minutes: 50
steps:
- name: Check out repository code
uses: actions/checkout@v4
- name: Add SLEPc to vanilla Firedrake
run: |
. /home/firedrake/firedrake/bin/activate
cp -R $SLEPC_DIR/src/binding/slepc4py $VIRTUAL_ENV/src
pip install --no-build-isolation --no-binary mpi4py,randomgen,numpy --no-deps $VIRTUAL_ENV/src/slepc4py/
- name: Install Netgen and ngsPETSc
run: |
. /home/firedrake/firedrake/bin/activate
pip install xdist pytest-timeout ipympl
pip install .
- name: Run part of the Firedrake test suite
run: |
. /home/firedrake/firedrake/bin/activate
cd $VIRTUAL_ENV/src/firedrake
pytest tests/regression/test_poisson_strong_bcs.py
pytest tests/multigrid/test_netgen_gmg.py
pytest tests/regression/test_netgen.py
firedrake-complex:
runs-on: ubuntu-latest
container:
image: firedrakeproject/firedrake-complex:latest
options: --user root
timeout-minutes: 50
steps:
- name: Check out repository code
uses: actions/checkout@v4
- name: Install Netgen and ngsPETSc
run: |
. /home/firedrake/firedrake/bin/activate
pip install xdist pytest-timeout ipympl
pip install .
- name: Run part of the Firedrake test suite
run: |
. /home/firedrake/firedrake/bin/activate
cd $VIRTUAL_ENV/src/firedrake
pytest tests/regression/test_poisson_strong_bcs.py
pytest tests/multigrid/test_netgen_gmg.py
pytest tests/regression/test_netgen.py