File tree Expand file tree Collapse file tree 2 files changed +62
-0
lines changed Expand file tree Collapse file tree 2 files changed +62
-0
lines changed File renamed without changes.
Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments