Force CI tests to use numpy<1.22

This commit is contained in:
Paul Romano 2022-01-03 09:40:33 -05:00
parent d834f83d08
commit 67db1f5af0
2 changed files with 6 additions and 3 deletions

View file

@ -1,2 +1,2 @@
[build-system]
requires = ["setuptools", "wheel", "numpy", "cython"]
requires = ["setuptools", "wheel", "numpy<1.22", "cython"]

View file

@ -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