Skip to content

Commit 0129dc4

Browse files
committed
Fix installation of numpy 2.1 on CI
1 parent 6b4223e commit 0129dc4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/workflows/array-api-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
if [[ "${{ matrix.numpy-version }}" == "dev" ]]; then
3636
python -m pip install --pre --extra-index https://pypi.anaconda.org/scientific-python-nightly-wheels/simple numpy;
3737
else
38-
python -m pip install 'numpy==${{ matrix.numpy-version }}';
38+
python -m pip install 'numpy>=${{ matrix.numpy-version }},<${{ matrix.numpy-version }}.99';
3939
fi
4040
python -m pip install ${GITHUB_WORKSPACE}/array-api-strict
4141
python -m pip install -r ${GITHUB_WORKSPACE}/array-api-tests/requirements.txt

.github/workflows/tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
if [[ "${{ matrix.numpy-version }}" == "dev" ]]; then
2020
python -m pip install --pre --extra-index https://pypi.anaconda.org/scientific-python-nightly-wheels/simple numpy;
2121
else
22-
python -m pip install 'numpy==${{ matrix.numpy-version }}';
22+
python -m pip install 'numpy>=${{ matrix.numpy-version }},<${{ matrix.numpy-version }}.99';
2323
fi
2424
python -m pip install -r requirements-dev.txt
2525
- name: Run Tests

0 commit comments

Comments
 (0)