-
Notifications
You must be signed in to change notification settings - Fork 19
40 lines (36 loc) · 1.07 KB
/
unix-openmpi.yml
File metadata and controls
40 lines (36 loc) · 1.07 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
name: Unix-OpenMPI
on:
pull_request:
# Run daily at midnight (UTC).
schedule:
- cron: '0 0 * * *'
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.10', 3.11, 3.12]
steps:
- uses: actions/checkout@v4
- uses: conda-incubator/setup-miniconda@v3
name: Setup conda
with:
auto-update-conda: true
activate-environment: testing
auto-activate-base: false
channels: defaults
channel-priority: true
python-version: ${{ matrix.python-version }}
- shell: bash -l {0}
name: Install dependencies
run: |
conda install -c conda-forge pytorch-cpu
conda install -c pytorch numpy pandas
conda install -c conda-forge mpi4py openmpi=5.*
pip install .[test]
pip install git+https://github.com/campa-consortium/gest-api.git
- shell: bash -l {0}
name: Run unit tests with openMPI
run: |
python -m pytest tests/
mpirun -np 3 --oversubscribe python -m pytest --with-mpi tests/test_grid_sampling_mpi.py