Skip to content

Commit 7d970f4

Browse files
committed
Update add --host
1 parent a1952cc commit 7d970f4

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/build.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,4 +43,9 @@ jobs:
4343
- name: Install pylops-mpi
4444
run: pip install .
4545
- name: Testing using pytest-mpi
46-
run: mpiexec --host localhost:12 -n ${{ matrix.rank }} pytest tests/test_blockdiag.py --with-mpi -v -x
46+
run: |
47+
if [ "${{ matrix.mpi }}" = "openmpi" ]; then
48+
mpiexec --host localhost:12 -n ${{ matrix.rank }} pytest tests/test_blockdiag.py --with-mpi -v -x
49+
else
50+
mpiexec -n ${{ matrix.rank }} pytest tests/test_blockdiag.py --with-mpi -v -x
51+
fi

0 commit comments

Comments
 (0)