Skip to content

Commit 511b4e7

Browse files
committed
Explicitly install NumPy 1.x as we are not compatible with NumPy 2.x yet.
1 parent 1e9057e commit 511b4e7

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ jobs:
7070
shell: python
7171
- name: Test
7272
run: |
73-
pip install numpy ml_dtypes
73+
pip install "numpy<2" ml_dtypes
7474
cargo test --all-features
7575
# Not on PyPy, because no embedding API
7676
if: ${{ !startsWith(matrix.python-version, 'pypy') }}
@@ -104,7 +104,7 @@ jobs:
104104
continue-on-error: true
105105
- uses: taiki-e/install-action@valgrind
106106
- run: |
107-
pip install numpy ml_dtypes
107+
pip install "numpy<2" ml_dtypes
108108
cargo test --all-features --release
109109
env:
110110
CARGO_TARGET_X86_64_UNKNOWN_LINUX_GNU_RUNNER: valgrind --leak-check=no --error-exitcode=1
@@ -119,7 +119,7 @@ jobs:
119119
continue-on-error: true
120120
- uses: taiki-e/install-action@cargo-careful
121121
- run: |
122-
pip install numpy ml_dtypes
122+
pip install "numpy<2" ml_dtypes
123123
cargo careful test --all-features
124124
125125
check-msrv:
@@ -195,7 +195,7 @@ jobs:
195195
steps:
196196
- uses: actions/checkout@v4
197197
- name: Install numpy
198-
run: pip install numpy ml_dtypes
198+
run: pip install "numpy<2" ml_dtypes
199199
- uses: Swatinem/rust-cache@v2
200200
continue-on-error: true
201201
- uses: dtolnay/rust-toolchain@stable

examples/linalg/noxfile.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@
33

44
@nox.session
55
def tests(session):
6-
session.install("pip", "numpy", "pytest")
6+
session.install("pip", "numpy<2", "pytest")
77
session.run("pip", "install", ".", "-v")
88
session.run("pytest")

examples/parallel/noxfile.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@
33

44
@nox.session
55
def tests(session):
6-
session.install("pip", "numpy", "pytest")
6+
session.install("pip", "numpy<2", "pytest")
77
session.run("pip", "install", ".", "-v")
88
session.run("pytest")

examples/simple/noxfile.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@
33

44
@nox.session
55
def tests(session):
6-
session.install("pip", "numpy", "pytest")
6+
session.install("pip", "numpy<2", "pytest")
77
session.run("pip", "install", ".", "-v")
88
session.run("pytest")

0 commit comments

Comments
 (0)