Skip to content

Commit d0ef320

Browse files
committed
CI: trim self-tests
Drop python 3.9 and 3.10, drop numpy 1.21 Not adding python 3.13 because ndonnx only supports 3.12 at the moment.
1 parent 6e1502c commit d0ef320

File tree

2 files changed

+6
-17
lines changed

2 files changed

+6
-17
lines changed

Diff for: .github/workflows/array-api-tests.yml

-3
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,6 @@ jobs:
4040
runs-on: ubuntu-latest
4141
strategy:
4242
matrix:
43-
# Min version of dask we need dropped support for Python 3.9
44-
# There is no numpy git tip for Python 3.9 or 3.10
45-
# python-version: ${{ (inputs.package-name == 'dask' && fromJson('[''3.10'', ''3.11'', ''3.12'']')) || (inputs.package-name == 'numpy' && inputs.xfails-file-extra == '-dev' && fromJson('[''3.11'', ''3.12'']')) || fromJson('[''3.9'', ''3.10'', ''3.11'', ''3.12'']') }}
4643
python-version: ['3.11', '3.12', '3.13']
4744

4845
steps:

Diff for: .github/workflows/tests.yml

+6-14
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,11 @@ jobs:
55
runs-on: ubuntu-latest
66
strategy:
77
matrix:
8-
python-version: ['3.9', '3.10', '3.11', '3.12']
9-
numpy-version: ['1.21', '1.26', '2.0', 'dev']
8+
python-version: ['3.11', '3.12']
9+
numpy-version: ['1.26', 'latest', 'dev']
1010
exclude:
11-
- python-version: '3.11'
12-
numpy-version: '1.21'
13-
- python-version: '3.12'
14-
numpy-version: '1.21'
11+
- python-version: '3.13'
12+
numpy-version: '1.26'
1513
fail-fast: true
1614
steps:
1715
- uses: actions/checkout@v4
@@ -23,21 +21,15 @@ jobs:
2321
python -m pip install --upgrade pip
2422
if [ "${{ matrix.numpy-version }}" == "dev" ]; then
2523
PIP_EXTRA='numpy --pre --extra-index-url https://pypi.anaconda.org/scientific-python-nightly-wheels/simple'
26-
elif [ "${{ matrix.numpy-version }}" == "1.21" ]; then
27-
PIP_EXTRA='numpy==1.21.*'
28-
else
24+
elif [ "${{ matrix.numpy-version }}" == "1.26" ]; then
2925
PIP_EXTRA='numpy==1.26.*'
3026
fi
3127
32-
if [ "${{ matrix.python-version }}" == "3.9" ]; then
33-
sed -i '/^ndonnx/d' requirements-dev.txt
34-
fi
35-
3628
python -m pip install -r requirements-dev.txt $PIP_EXTRA
3729
3830
- name: Run Tests
3931
run: |
40-
if [[ "${{ matrix.numpy-version }}" == "1.21" || "${{ matrix.numpy-version }}" == "dev" ]]; then
32+
if [[ "${{ matrix.numpy-version }}" == "dev" ]]; then
4133
PYTEST_EXTRA=(-k "numpy and not jax and not torch and not dask and not sparse")
4234
fi
4335
pytest -v "${PYTEST_EXTRA[@]}"

0 commit comments

Comments
 (0)