Skip to content

Commit 40c1ba9

Browse files
committed
ensure numpy>2.3 used in 'nightly', check this is true
1 parent e7143dd commit 40c1ba9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
- name: Install numpy nightly
2727
if: matrix.numpy-version == 'nightly'
2828
run: |
29-
pip install -i https://pypi.anaconda.org/scientific-python-nightly-wheels/simple numpy
29+
pip install --pre --upgrade --timeout=60 -i https://pypi.anaconda.org/scientific-python-nightly-wheels/simple numpy
3030
- name: Install numpy from PyPI
3131
if: matrix.numpy-version != 'nightly'
3232
run: |
@@ -75,6 +75,8 @@ jobs:
7575
working-directory: quaddtype
7676
run: |
7777
if [ "${{ matrix.numpy-version }}" == "nightly" ]; then
78+
# obscure errors when using command line 2_4 if numpy does not define it
79+
python -c "import numpy as np; assert np.__version__ >= '2.4'"
7880
extra_args="-Csetup-args=-Dcpp_args=-DNPY_TARGET_VERSION=NPY_2_4_API_VERSION --no-build-isolation"
7981
fi
8082
export LDFLAGS="-fopenmp"

0 commit comments

Comments
 (0)