Skip to content

Commit 70e77ad

Browse files
committed
TEST docker
1 parent 4f7566a commit 70e77ad

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

.github/workflows/cd-wheel.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,3 +209,24 @@ jobs:
209209

210210
- id: check
211211
run: ./check-wheel.sh wheelhouse
212+
213+
- id: test
214+
if: ${{ runner.os == 'Linux' }}
215+
run: |
216+
cat > test-mpi.sh << EOF
217+
wheelhouse=${1:-dist}
218+
python -m venv .venv
219+
source .venv/bin/activate
220+
python -m pip install -f "$wheelhouse" $MPINAME
221+
bash cibw-check-mpi.sh
222+
EOF
223+
docker run \
224+
-e MPINAME=${{ inputs.mpiname }} \
225+
-v $(pwd):/${{ github.workspace }} \
226+
-w ${{ github.workspace }} \
227+
--platform linux/${{
228+
matrix.arch == 'x86_64' && 'amd64' ||
229+
matrix.arch == 'aarch64' && 'arm64' ||
230+
matrix.arch == 'ppc64le' && 'ppc64le'
231+
}} python:3 \
232+
bash test-mpi.sh wheelhouse

0 commit comments

Comments
 (0)