From 67db1f5af0c32d83a0f40595132b6d4a3dac903c Mon Sep 17 00:00:00 2001 From: Paul Romano Date: Mon, 3 Jan 2022 09:40:33 -0500 Subject: [PATCH] Force CI tests to use numpy<1.22 --- pyproject.toml | 2 +- tools/ci/gha-install.sh | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index d5970617a7..ac67355937 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,2 +1,2 @@ [build-system] -requires = ["setuptools", "wheel", "numpy", "cython"] +requires = ["setuptools", "wheel", "numpy<1.22", "cython"] diff --git a/tools/ci/gha-install.sh b/tools/ci/gha-install.sh index 8c4762e3e4..aa40eb90b1 100755 --- a/tools/ci/gha-install.sh +++ b/tools/ci/gha-install.sh @@ -1,10 +1,13 @@ #!/bin/bash set -ex -# Upgrade pip, pytest, numpy before doing anything else +# Upgrade pip, pytest, numpy before doing anything else. +# TODO: numpy 1.22 results in several failing tests, so we force a lower version +# for now (similar change made in pyproject.toml). When this is removed, those +# tests will need to be updated. pip install --upgrade pip pip install --upgrade pytest -pip install --upgrade numpy +pip install --upgrade "numpy<1.22" # Install NJOY 2016 ./tools/ci/gha-install-njoy.sh