Skip to content

Commit 78dc3e5

Browse files
committed
Move the if down to the steps
1 parent 20c56be commit 78dc3e5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

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

+4-4
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,6 @@ jobs:
3333
matrix:
3434
python-version: ['3.8', '3.9', '3.10', '3.11']
3535

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-
4036
steps:
4137
- name: Checkout array-api-compat
4238
uses: actions/checkout@v3
@@ -57,11 +53,15 @@ jobs:
5753
with:
5854
python-version: ${{ matrix.python-version }}
5955
- name: Install dependencies
56+
# NumPy 1.21 doesn't support Python 3.11. There doesn't seem to be a way
57+
# to put this in the numpy 1.21 config file.
58+
if: "! (matrix.python-version == '3.11' && inputs.package-name == 'numpy' && contains(inputs.package-version, '1.21'))"
6059
run: |
6160
python -m pip install --upgrade pip
6261
python -m pip install '${{ inputs.package-name }} ${{ inputs.package-version }}'
6362
python -m pip install -r ${GITHUB_WORKSPACE}/array-api-tests/requirements.txt
6463
- name: Run the array API testsuite (${{ inputs.package-name }})
64+
if: "! (matrix.python-version == '3.11' && inputs.package-name == 'numpy' && contains(inputs.package-version, '1.21'))"
6565
env:
6666
ARRAY_API_TESTS_MODULE: array_api_compat.${{ inputs.package-name }}
6767
# This enables the NEP 50 type promotion behavior (without it a lot of

0 commit comments

Comments
 (0)