3737 runs-on : ubuntu-latest
3838 strategy :
3939 matrix :
40- python-version : ['3.8 ', '3.9 ', '3.10 ', '3.11 ']
40+ python-version : ['3.9 ', '3.10 ', '3.11 ', '3.12 ']
4141
4242 steps :
4343 - name : Checkout array-api-compat
@@ -55,17 +55,15 @@ jobs:
5555 with :
5656 python-version : ${{ matrix.python-version }}
5757 - name : Install dependencies
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')))"
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' || matrix.python-version == '3.12') && inputs.package-name == 'numpy' && contains(inputs.package-version, '1.21'))"
6261 run : |
6362 python -m pip install --upgrade pip
6463 python -m pip install '${{ inputs.package-name }} ${{ inputs.package-version }}' ${{ inputs.extra-requires }}
6564 python -m pip install -r ${GITHUB_WORKSPACE}/array-api-tests/requirements.txt
66- python -m pip install hypothesis==6.97.1
6765 - name : Run the array API testsuite (${{ inputs.package-name }})
68- 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') ))"
66+ if : " ! ((matrix.python-version == '3.11' || matrix.python-version == '3.12') && inputs.package-name == 'numpy' && contains(inputs.package-version , '1.21' ))"
6967 env :
7068 ARRAY_API_TESTS_MODULE : array_api_compat.${{ inputs.module-name || inputs.package-name }}
7169 # This enables the NEP 50 type promotion behavior (without it a lot of
0 commit comments