-
Notifications
You must be signed in to change notification settings - Fork 10
50 lines (44 loc) · 1.18 KB
/
tests_parallel.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
name: Tests (ubuntu, parallel)
on:
workflow_dispatch:
pull_request:
schedule:
- cron: '03 22 * * *'
jobs:
parallel_tests:
name: Test (py=${{ matrix.python-version}}, ${{ matrix.mpi }})
runs-on: ubuntu-latest
defaults:
run:
shell: bash -l {0}
strategy:
fail-fast: false
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11"]
mpi: [mpich, openmpi]
exclude:
- python-version: "3.8"
mpi: openmpi
steps:
- name: Checkout repository
uses: actions/checkout@v4.1.1
- name: Install micromamba
uses: mamba-org/setup-micromamba@v1
with:
environment-file: .github/micromamba/testenv.yml
create-args: >-
fenics=2019
meshio>=5.3.0
pytest>=7.2.0
gmsh>=4.8
petsc<=3.19
${{ matrix.mpi }}
python=${{ matrix.python-version }}
- name: Install package
run: |
pip install .[all]
- name: Run tests in parallel
env:
OMP_NUM_THREADS: 1
run: |
mpirun -n 2 python3 -m pytest -vv --timeout=1800 -p no:cacheprovider --randomly-seed=${{ github.run_id }} tests/