-
Notifications
You must be signed in to change notification settings - Fork 13
55 lines (45 loc) · 1.39 KB
/
tests_parallel.yml
File metadata and controls
55 lines (45 loc) · 1.39 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
44
45
46
47
48
49
50
51
52
53
54
55
name: Tests (ubuntu, parallel)
on:
workflow_dispatch:
pull_request:
schedule:
- cron: '03 22 * * *'
permissions: read-all
env:
OMP_NUM_THREADS: 1
SCOTCH_DETERMINISTIC: 1
SCOTCH_RANDOM_FIXED_SEED: 1
jobs:
parallel_tests:
name: Test (py=${{ matrix.python-version}}, ${{ matrix.mpi }})
runs-on: ubuntu-latest
defaults:
run:
shell: bash -el {0}
strategy:
fail-fast: false
matrix:
python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"]
mpi: [mpich, openmpi]
steps:
- name: Checkout repository
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Create conda environment
uses: conda-incubator/setup-miniconda@fc2d68f6413eb2d87b895e92f8584b5b94a10167 # v3.3.0
with:
environment-file: .github/conda/${{ matrix.mpi }}.yml
miniforge-version: latest
python-version: ${{ matrix.python-version }}
activate-environment: test
auto-activate-base: false
conda-remove-defaults: true
- name: Show conda info
run: conda info
- name: Show list of all installed packages
run: conda list
- name: Install package
run: |
pip install .[all]
- name: Run tests in parallel
run: |
mpirun -n 2 python3 -m pytest -vv --timeout=1800 -p no:cacheprovider --randomly-seed=${{ github.run_id }} tests/