-
Notifications
You must be signed in to change notification settings - Fork 8
43 lines (35 loc) · 1.08 KB
/
Copy pathtests.yml
File metadata and controls
43 lines (35 loc) · 1.08 KB
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
name: Test package
on:
pull_request:
push:
branches: [main]
jobs:
test-code:
name: Test on ${{ matrix.label }}
runs-on: ubuntu-24.04
container: ghcr.io/fenics/dolfinx/dolfinx:${{ matrix.label }}
env:
DEB_PYTHON_INSTALL_LAYOUT: deb_system
OMPI_ALLOW_RUN_AS_ROOT: 1
OMPI_ALLOW_RUN_AS_ROOT_CONFIRM: 1
PRTE_MCA_rmaps_default_mapping_policy: :oversubscribe
strategy:
fail-fast: false
matrix:
label: [
"stable",
"nightly"
]
steps:
- uses: actions/checkout@v7
- name: Update pip
run: python3 -m pip install --upgrade pip
- name: Install package
run: |
python3 -m pip install --group build
HDF5_MPI=ON HDF5_PKGCONFIG_NAME="hdf5" python3 -m pip install h5py --no-build-isolation --no-binary=h5py
python3 -m pip install .[test] --no-build-isolation --check-build-dependencies
- name: Run tests
run: python3 -m pytest -v
- name: Run tests in parallel
run: mpiexec -n 4 python3 -m pytest -v -m "not serial"