Skip to content

Commit 10d0b65

Browse files
committed
install mpich with micromamba
1 parent df56a87 commit 10d0b65

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

.github/workflows/test.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,30 @@ jobs:
4646
- python: "3.6"
4747
- python: "3.7"
4848
- python: "3.8"
49+
mpi: true
4950
- python: "3.9"
5051

5152
steps:
5253
- uses: actions/checkout@v2
5354

55+
- name: Cache conda environment
56+
uses: actions/cache@v2
57+
with:
58+
path: |
59+
~/conda
60+
key: conda
61+
62+
- name: install MPI
63+
if: matrix.mpi
64+
run: |
65+
export MAMBA_ROOT_PREFIX=$HOME/conda
66+
test -d $MAMBA_ROOT_PREFIX || mkdir $MAMBA_ROOT_PREFIX
67+
wget -qO- https://micro.mamba.pm/api/micromamba/linux-64/latest | tar -xvj bin/micromamba
68+
eval "$(./bin/micromamba shell hook -s posix)"
69+
micromamba activate
70+
micromamba install -y -c conda-forge mpich
71+
echo "PATH=$MAMBA_ROOT_PREFIX/bin:$PATH" >> $GITHUB_ENV
72+
5473
- name: Install Python ${{ matrix.python }}
5574
uses: actions/setup-python@v2
5675
with:

0 commit comments

Comments
 (0)