Skip to content

Commit 7c0116c

Browse files
committed
Run the normal tests against different versions of numpy
1 parent f6b5ea2 commit 7c0116c

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

.github/workflows/tests.yml

+14-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,13 @@ jobs:
66
strategy:
77
matrix:
88
python-version: ['3.8', '3.9', '3.10', '3.11']
9+
numpy-version: ['1.21', '1.26', 'dev']
910
fail-fast: true
11+
exclude:
12+
- python-version: '3.11'
13+
numpy-version: '1.21'
14+
- python-version: '3.8'
15+
numpy-version: 'dev'
1016
steps:
1117
- uses: actions/checkout@v4
1218
- uses: actions/setup-python@v5
@@ -15,7 +21,14 @@ jobs:
1521
- name: Install Dependencies
1622
run: |
1723
python -m pip install --upgrade pip
18-
python -m pip install pytest numpy torch dask[array] jax[cpu]
24+
python -m pip install pytest torch dask[array] jax[cpu]
25+
if [ "${{ matrix.numpy-version }}" == "dev" ]; then
26+
python -m pip install numpy --pre --extra-index-url https://pypi.anaconda.org/scientific-python-nightly-wheels/simple
27+
elif [ "${{ matrix.numpy-version }}" == "1.21" ]; then
28+
python -m pip install numpy==1.21.*
29+
else
30+
python -m pip install numpy==1.26.*
31+
fi
1932
2033
- name: Run Tests
2134
run: |

0 commit comments

Comments
 (0)