Skip to content

Commit 2d9e17c

Browse files
committed
install mpi4py for mpi tests
1 parent 95789d5 commit 2d9e17c

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/test.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,21 +59,23 @@ jobs:
5959
~/conda
6060
key: conda
6161

62-
- name: install MPI
62+
- name: Install Python (conda) ${{ matrix.python }}
6363
if: matrix.mpi
6464
run: |
6565
export MAMBA_ROOT_PREFIX=$HOME/conda
6666
test -d $MAMBA_ROOT_PREFIX || mkdir $MAMBA_ROOT_PREFIX
6767
wget -qO- https://micro.mamba.pm/api/micromamba/linux-64/latest | tar -xvj bin/micromamba
6868
eval "$(./bin/micromamba shell hook -s posix)"
6969
micromamba activate
70-
micromamba install -y -c conda-forge mpich
70+
micromamba install -y -c conda-forge mpich mpi4py python=${{ matrix.python }}
7171
echo "PATH=$MAMBA_ROOT_PREFIX/bin:$PATH" >> $GITHUB_ENV
7272
7373
- name: Install Python ${{ matrix.python }}
74+
if: ${{ ! matrix.mpi }}
7475
uses: actions/setup-python@v2
7576
with:
7677
python-version: ${{ matrix.python }}
78+
7779
- name: Install Python dependencies
7880
run: |
7981
pip install --upgrade pip

0 commit comments

Comments
 (0)