-
Notifications
You must be signed in to change notification settings - Fork 57
44 lines (37 loc) · 960 Bytes
/
tests_mpi.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
name: "Multiprocessing tests"
on: [push]
jobs:
build:
strategy:
matrix:
include:
- os: "ubuntu-latest"
mpi: "openmpi"
- os: "macos-13"
mpi: "mpich"
- os: "windows-latest"
mpi: "intelmpi"
runs-on: ${{ matrix.os }}
timeout-minutes: 30
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Setup MPI]
uses: mpi4py/setup-mpi@v1
with:
mpi: ${{ matrix.mpi }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r tests/requirements_mpi.txt
pip install -r tests/requirements.txt
- name: Run parallel tests with pytest
env:
NUMBA_WARNINGS: 1
MPLBACKEND: agg
run: |
cd scripts
python run_tests.py --unit --use_mpi --showconfig