Skip to content

Commit

Permalink
TEST docker
Browse files Browse the repository at this point in the history
  • Loading branch information
dalcinl committed Nov 21, 2024
1 parent 4f7566a commit b861efe
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/cd-wheel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -209,3 +209,24 @@ jobs:

- id: check
run: ./check-wheel.sh wheelhouse

- id: test
if: ${{ runner.os == 'Linux' }}
run: |
cat > test-mpi.sh << EOF
python -m venv .venv
source .venv/bin/activate
python -m pip install $MPINAME \
--no-index --find-links wheelhouse
bash cibw-check-mpi.sh
EOF
docker run \
-e MPINAME=${{ inputs.mpiname }} \
-v $(pwd):/${{ github.workspace }} \
-w ${{ github.workspace }} \
--platform linux/${{
matrix.arch == 'x86_64' && 'amd64' ||
matrix.arch == 'aarch64' && 'arm64' ||
matrix.arch == 'ppc64le' && 'ppc64le'
}} python:3 \
bash test-mpi.sh

0 comments on commit b861efe

Please sign in to comment.