Skip to content

Commit

Permalink
Run in QEMU + Python container
Browse files Browse the repository at this point in the history
  • Loading branch information
agriyakhetarpal committed Jun 12, 2024
1 parent fb1fe07 commit c8dd3ce
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/publish_pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -178,11 +178,14 @@ jobs:
name: wheels_manylinux_aarch64
path: wheelhouse

- name: Install manylinux_aarch64 wheel from wheelhouse according to Python version
run: python -m pip install wheelhouse/pybamm-*-${{ matrix.python[1] }}-${{ matrix.python[1] }}-manylinux_2_28_aarch64.whl
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
with:
platforms: all

- name: Test manylinux_aarch64 wheel on Ubuntu, i.e., outside Manylinux container
run: python -c "import pybamm; print(pybamm.IDAKLUSolver())"
- name: Run tests
run: |
docker run --platform linux/arm64 python:${{ matrix.python[0] }} bash -c "cp -r wheelhouse / && ls -a / && pip install /pybamm-*-${{ matrix.python[1] }}-${{ matrix.python[1] }}-manylinux_2_28_aarch64.whl && python -c 'import pybamm; print(pybamm.IDAKLUSolver())'"
build_macos_wheels:
name: Wheels (${{ matrix.os }})
Expand Down

0 comments on commit c8dd3ce

Please sign in to comment.