From 17e2802684ae40b8b7b3a93d7d1c838ccfc2eeb7 Mon Sep 17 00:00:00 2001 From: Thomas VINCENT Date: Wed, 24 Jul 2024 14:55:30 +0200 Subject: [PATCH] Use numpy<2 to fix tests in release workflow --- .github/workflows/release.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index c7d2ceb7..92465bc1 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -104,7 +104,9 @@ jobs: CIBW_ARCHS: ${{ matrix.cibw_archs }} # Use silx wheelhouse for ppc64le - CIBW_BEFORE_TEST: pip install h5py --only-binary ":all:" --find-links=https://www.silx.org/pub/wheelhouse/ --trusted-host=www.silx.org + # Use numpy<2 since h5py v3.11 which supports numpy v2 is not available for all architectures + # see https://github.com/h5py/h5py/issues/2408 + CIBW_BEFORE_TEST: pip install "numpy<2" h5py --only-binary ":all:" --find-links=https://www.silx.org/pub/wheelhouse/ --trusted-host=www.silx.org CIBW_TEST_COMMAND: python {project}/test/test.py - uses: actions/upload-artifact@v4 with: