Skip to content

Commit

Permalink
Explicitly install NumPy 1.x as we are not compatible with NumPy 2.x …
Browse files Browse the repository at this point in the history
…yet.
  • Loading branch information
adamreichold committed Jul 21, 2024
1 parent 06d7035 commit 161cb2a
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ jobs:
shell: python
- name: Test
run: |
pip install numpy ml_dtypes
pip install "numpy<2" ml_dtypes
cargo test --all-features
# Not on PyPy, because no embedding API
if: ${{ !startsWith(matrix.python-version, 'pypy') }}
Expand Down Expand Up @@ -104,7 +104,7 @@ jobs:
continue-on-error: true
- uses: taiki-e/install-action@valgrind
- run: |
pip install numpy ml_dtypes
pip install "numpy<2" ml_dtypes
cargo test --all-features --release
env:
CARGO_TARGET_X86_64_UNKNOWN_LINUX_GNU_RUNNER: valgrind --leak-check=no --error-exitcode=1
Expand All @@ -119,7 +119,7 @@ jobs:
continue-on-error: true
- uses: taiki-e/install-action@cargo-careful
- run: |
pip install numpy ml_dtypes
pip install "numpy<2" ml_dtypes
cargo careful test --all-features
check-msrv:
Expand Down Expand Up @@ -195,7 +195,7 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Install numpy
run: pip install numpy ml_dtypes
run: pip install "numpy<2" ml_dtypes
- uses: Swatinem/rust-cache@v2
continue-on-error: true
- uses: dtolnay/rust-toolchain@stable
Expand Down
2 changes: 1 addition & 1 deletion examples/linalg/noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@

@nox.session
def tests(session):
session.install("pip", "numpy", "pytest")
session.install("pip", "numpy<2", "pytest")
session.run("pip", "install", ".", "-v")
session.run("pytest")
2 changes: 1 addition & 1 deletion examples/parallel/noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@

@nox.session
def tests(session):
session.install("pip", "numpy", "pytest")
session.install("pip", "numpy<2", "pytest")
session.run("pip", "install", ".", "-v")
session.run("pytest")
2 changes: 1 addition & 1 deletion examples/simple/noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@

@nox.session
def tests(session):
session.install("pip", "numpy", "pytest")
session.install("pip", "numpy<2", "pytest")
session.run("pip", "install", ".", "-v")
session.run("pytest")

0 comments on commit 161cb2a

Please sign in to comment.