Skip to content

Commit b9d8a9b

Browse files
committed
Don't run numpy dev tests in Python 3.8
1 parent f1d1dd4 commit b9d8a9b

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/array-api-tests.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,10 @@ jobs:
5555
with:
5656
python-version: ${{ matrix.python-version }}
5757
- name: Install dependencies
58-
# NumPy 1.21 doesn't support Python 3.11. There doesn't seem to be a way
59-
# to put this in the numpy 1.21 config file.
60-
if: "! (matrix.python-version == '3.11' && inputs.package-name == 'numpy' && contains(inputs.package-version, '1.21'))"
58+
# NumPy 1.21 doesn't support Python 3.11. NumPy 2.0 doesn't support
59+
# Python 3.8. There doesn't seem to be a way to put this in the numpy
60+
# 1.21 config file.
61+
if: "! ((matrix.python-version == '3.11' && inputs.package-name == 'numpy' && contains(inputs.package-version, '1.21')) || (matrix.python-version == '3.8' && inputs.package-name == 'numpy' && contains(inputs.xfails-file-extra, 'dev')))"
6162
run: |
6263
python -m pip install --upgrade pip
6364
python -m pip install '${{ inputs.package-name }} ${{ inputs.package-version }}' ${{ inputs.extra-requires }}

0 commit comments

Comments
 (0)