-
Notifications
You must be signed in to change notification settings - Fork 3
52 lines (48 loc) · 1.76 KB
/
ci.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
name: MDFEniCSx CI
on:
push:
branches:
- "**"
pull_request:
branches:
- "main"
jobs:
test:
runs-on: ubuntu-latest
container: dolfinx/dolfinx:v0.7.2
strategy:
fail-fast: false
matrix:
python-version: ["3.8"]
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Test dolfinx
run: |
python3 --version
python3 -c "import ufl; print(f'ufl version {ufl.__version__} import success')"
mpiexec -n 3 python3 -c "import ufl; print(f'ufl version {ufl.__version__} import success (parallel)')"
python3 -c "from mpi4py import MPI; print(f'MPI version {MPI.__version__} import success')"
mpiexec -n 3 python3 -c "from mpi4py import MPI; print(f'MPI version {MPI.__version__} import success (parallel)')"
python3 -c "import dolfinx; print(f'dolfinx version {dolfinx.__version__} import success')"
mpiexec -n 3 python3 -c "import dolfinx; print(f'dolfinx version {dolfinx.__version__} import success (parallel)')"
python3 -c "import gmsh; print(f'gmsh version {gmsh.__version__} import success')"
mpiexec -n 3 python3 -c "import gmsh; print(f'gmsh version {gmsh.__version__} import success (parallel)')"
# ### Flake8 tests
#flake8:
#runs-on: ubuntu-latest
#strategy:
#fail-fast: false
#matrix:
#python-version: ["3.8"]
#paths: [" "]
#steps:
#- name: Install flake8
#uses: py-actions/flake8@v2
#with:
#max-line-length: "500"
#path: ${{ matrix.paths }}
#- name: Set up Python ${{ matrix.python-version }}
#uses: actions/setup-python@v3
#with:
#python-version: ${{ matrix.python-version }}