Skip to content

Commit 8358e1c

Browse files
committed
Move the Numpy 1.21 skip to the main config file
1 parent 912fd11 commit 8358e1c

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

.github/workflows/array-api-tests-numpy-1-21.yml

-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@ on: [push, pull_request]
44

55
jobs:
66
array-api-tests-numpy:
7-
# NumPy 1.21 doesn't support Python 3.11
8-
if: env.PYTHONP_VERSION != '3.11'
97
uses: ./.github/workflows/array-api-tests.yml
108
with:
119
package-name: numpy

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

+4-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ on:
2525

2626
env:
2727
PYTEST_ARGS: "--max-examples 200 -v -rxXfE --ci ${{ inputs.pytest-extra-args }}"
28-
PYTHON_VERSION: "${{ matrix.python-version }}"
2928

3029
jobs:
3130
tests:
@@ -34,6 +33,10 @@ jobs:
3433
matrix:
3534
python-version: ['3.8', '3.9', '3.10', '3.11']
3635

36+
# NumPy 1.21 doesn't support Python 3.11. There doesn't seem to be a way
37+
# to put this in the numpy 1.21 config file.
38+
if: !(matrix.python-version == "3.11" && inputs.package-name == 'numpy' && contains(inputs.package-version, "1.21"))
39+
3740
steps:
3841
- name: Checkout array-api-compat
3942
uses: actions/checkout@v3

0 commit comments

Comments
 (0)