Skip to content

Commit 6b9d698

Browse files
authored
GitHub action with mpich, oshmpi, Python 3.7-3.11 (#14)
1 parent 75ece71 commit 6b9d698

File tree

2 files changed

+62
-0
lines changed

2 files changed

+62
-0
lines changed
File renamed without changes.

.github/workflows/native.yml

+62
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
name: native
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches:
9+
- main
10+
workflow_dispatch:
11+
12+
jobs:
13+
14+
test:
15+
runs-on: ${{ matrix.os }}
16+
timeout-minutes: 30
17+
strategy:
18+
fail-fast: false
19+
matrix:
20+
os:
21+
- ubuntu-latest
22+
mpi:
23+
- mpich
24+
py:
25+
- "3.7"
26+
- "3.8"
27+
- "3.9"
28+
- "3.10"
29+
- "3.11"
30+
31+
steps:
32+
- name: Checkout
33+
uses: actions/checkout@v3
34+
35+
- name: Setup MPI (${{ matrix.mpi }})
36+
uses: mpi4py/setup-mpi@v1
37+
with:
38+
mpi: ${{ matrix.mpi }}
39+
40+
- name: Use Python ${{ matrix.py }}
41+
uses: actions/setup-python@v4
42+
with:
43+
python-version: ${{ matrix.py }}
44+
architecture: x64
45+
46+
- name: Setup oshmpi
47+
run: >
48+
git clone https://github.com/pmodels/oshmpi --recurse-submodules &&
49+
cd oshmpi &&
50+
./autogen.sh &&
51+
./configure CC=/usr/bin/mpicc CXX=/usr/bin/mpicxx --prefix=$HOME/oshmpi/install &&
52+
make -j && make install &&
53+
echo "${HOME}/oshmpi/install/bin" >> $GITHUB_PATH
54+
55+
- name: Install
56+
run: python -m pip install .
57+
58+
- name: Test - 1 process
59+
run: make test-1
60+
61+
- name: Test - 2 processes
62+
run: make test-2

0 commit comments

Comments
 (0)