Skip to content

Commit 017f748

Browse files
committed
Fix aarch64 test
1 parent 06c7997 commit 017f748

File tree

1 file changed

+13
-10
lines changed

1 file changed

+13
-10
lines changed

.github/workflows/ci.yml

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -94,22 +94,25 @@ jobs:
9494
runs-on: "ubuntu-latest"
9595
strategy:
9696
matrix:
97-
distro: [ "ubuntu_latest" ]
98-
arch: ["aarch64"]
97+
python_version:
98+
- "3.8"
9999
steps:
100100
- uses: actions/checkout@v4
101101
with:
102102
submodules: recursive
103-
- uses: uraimo/run-on-arch-action@v2.2.0
103+
- uses: uraimo/run-on-arch-action@v2.5.0
104104
name: Build & run test
105105
with:
106-
arch: ${{ matrix.arch }}
107-
distro: ${{ matrix.distro }}
108-
install: |
109-
apt-get update -q -y
110-
apt-get install -q -y python3 python3-pip tox cmake git googletest
111-
run: |
112-
tox
106+
arch: none
107+
distro: none
108+
base_image: "--platform=linux/arm64 quay.io/pypa/manylinux2014_aarch64"
109+
# versioningit needs an accessible git repository but the container
110+
# is run as root, which is different from the repository user.
111+
# use git config to override this.
112+
run: |-
113+
git config --global --add safe.directory $PWD
114+
CFLAGS="-DNDEBUG -g0" python${{matrix.python_version}} -m pip install . pytest
115+
python${{matrix.python_version}} -m pytest tests
113116
114117
# Test if the python-zlib-ng conda package can be build. Which is linked
115118
# dynamically to the conda zlib-ng package.

0 commit comments

Comments
 (0)