Skip to content

Commit de312ea

Browse files
authored
NumPy 2.0 CI. (#705)
1 parent cf77909 commit de312ea

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
numba_boundscheck: 1
2525
- os: ubuntu-latest
2626
python: '3.10'
27-
pip_opts: "--pre -U"
27+
pip_opts: 'numpy<2'
2828
fail-fast: false
2929
runs-on: ${{ matrix.os }}
3030
env:
@@ -42,7 +42,9 @@ jobs:
4242
- name: Install package
4343
run: |
4444
pip install -e .[tests]
45-
pip install ${{ matrix.pip_opts }} numpy numba
45+
if [ "${{ matrix.pip_opts }}" != "" ]; then
46+
pip install "${{ matrix.pip_opts }}" numba
47+
fi
4648
- name: Run tests
4749
run: |
4850
SPARSE_BACKEND=Numba pytest --pyargs sparse --cov-report=xml:coverage_Numba.xml -n 4 -vvv

0 commit comments

Comments
 (0)