From 336a4a4ebbe45d0a254440b9338b99501c5d281c Mon Sep 17 00:00:00 2001 From: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com> Date: Tue, 2 Apr 2024 12:17:49 +0300 Subject: [PATCH] Test NumPy 2 pre-release --- .ci/install.sh | 2 +- .github/workflows/macos-install.sh | 2 +- .github/workflows/wheels-test.sh | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.ci/install.sh b/.ci/install.sh index 30b64349d70..2013d3f3ced 100755 --- a/.ci/install.sh +++ b/.ci/install.sh @@ -40,7 +40,7 @@ python3 -m pip install pyroma if [[ $(uname) != CYGWIN* ]]; then # TODO Update condition when NumPy supports 3.13 - if ! [[ "$GHA_PYTHON_VERSION" == "3.13" ]]; then python3 -m pip install numpy ; fi + if ! [[ "$GHA_PYTHON_VERSION" == "3.13" ]]; then python3 -m pip install -U numpy --pre ; fi # PyQt6 doesn't support PyPy3 if [[ $GHA_PYTHON_VERSION == 3.* ]]; then diff --git a/.github/workflows/macos-install.sh b/.github/workflows/macos-install.sh index 28124d7f759..a48ea187f08 100755 --- a/.github/workflows/macos-install.sh +++ b/.github/workflows/macos-install.sh @@ -26,7 +26,7 @@ python3 -m pip install -U pytest-timeout python3 -m pip install pyroma # TODO Update condition when NumPy supports 3.13 -if ! [[ "$GHA_PYTHON_VERSION" == "3.13" ]]; then python3 -m pip install numpy ; fi +if ! [[ "$GHA_PYTHON_VERSION" == "3.13" ]]; then python3 -m pip install -U numpy --pre ; fi # extra test images pushd depends && ./install_extra_test_images.sh && popd diff --git a/.github/workflows/wheels-test.sh b/.github/workflows/wheels-test.sh index 3fbf3be695b..72c82b67d8a 100755 --- a/.github/workflows/wheels-test.sh +++ b/.github/workflows/wheels-test.sh @@ -13,7 +13,7 @@ else yum install -y fribidi fi if [ "${AUDITWHEEL_POLICY::9}" != "musllinux" ]; then - python3 -m pip install numpy + python3 -m pip install -U numpy --pre fi if [ ! -d "test-images-main" ]; then