-
Notifications
You must be signed in to change notification settings - Fork 2
69 lines (57 loc) · 1.79 KB
/
testing.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
name: Test Maxwell problem solver
on:
# Trigger tests on push
push:
branches:
- "**"
schedule:
# '*' is a special character in YAML, so string must be quoted
- cron: "0 1 * * *"
env:
PETSC_ARCH: linux-gnu-real-32
jobs:
build:
runs-on:
ubuntu-latest
container: fenicsproject/test-env:v0.7.2-mpich
steps:
- uses: actions/checkout@v4
- name: Get Basix
uses: actions/checkout@v4
with:
path: ./basix
repository: FEniCS/basix
ref: v0.7.0
- name: Install UFL, Basix, FFCx
run: |
cmake -G Ninja -B build-basix -DCMAKE_BUILD_TYPE="Release" -S ./basix/cpp/
cmake --build build-basix --parallel 3
cmake --install build-basix
BUILD_TYPE="Release" pip3 install ./basix/python
python3 -m pip install git+https://github.com/FEniCS/ufl.git@2023.2.0
python3 -m pip install git+https://github.com/FEniCS/ffcx.git@v0.7.0
- name: Get DOLFINx
uses: actions/checkout@v4
with:
path: ./dolfinx
repository: FEniCS/dolfinx
ref: v0.7.2
- name: Configure C++ (dolfinx)
run: |
cmake -G Ninja -DCMAKE_BUILD_TYPE="Debug" -B build-dolfinx -S ./dolfinx/cpp/
- name: Build and install C++ library (dolfinx)
run: |
cmake --build build-dolfinx
cmake --install build-dolfinx
- name: Build Python interface (dolfinx)
run: BUILD_TYPE="Debug" python3 -m pip -v install ./dolfinx/python/
- name: Flake8 code
run: flake8 *.py
- name: Install dependencies
run: |
pip3 install tqdm
- name: Run test
run: |
python3 problems.py
python3 convergence.py
python3 iterations.py