From a40751e3db0b7a44462fb5c0f7559bbb1b85cb18 Mon Sep 17 00:00:00 2001 From: Ralf Gommers Date: Mon, 12 Aug 2024 00:09:07 +0200 Subject: [PATCH] CI: ensure we get numpy >=2.1.0rc1 for testing on aarch64 On other platforms, building 2.0.1 from source is still okay, but not under QEMU. --- .github/workflows/wheel_tests_and_release.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/wheel_tests_and_release.yml b/.github/workflows/wheel_tests_and_release.yml index 12d13f445..a73e168aa 100644 --- a/.github/workflows/wheel_tests_and_release.yml +++ b/.github/workflows/wheel_tests_and_release.yml @@ -95,6 +95,15 @@ jobs: uses: docker/setup-qemu-action@v3 with: platforms: arm64 + + - name: Install test dep; set CIBW environment variables + # Can be removed once numpy 2.1.0 is released + if: ${{ matrix.cibw_python }} == "cp313" + run: | + PYPI_URL="https://pypi.anaconda.org/scientific-python-nightly-wheels/simple" + CIBW_DEPS="pip install --pre -i $PYPI_URL numpy" + echo "CIBW_BEFORE_TEST=$CIBW_DEPS" >> "$GITHUB_ENV" + - name: Build the wheel uses: pypa/cibuildwheel@bd033a44476646b606efccdd5eed92d5ea1d77ad # v2.20.0 with: