@@ -4,6 +4,7 @@ on: [push, pull_request]
4
4
5
5
env :
6
6
PYTEST_ARGS : " -v -rxXfE --ci --hypothesis-disable-deadline --max-examples 200"
7
+ API_VERSIONS : " 2022.12 2023.12"
7
8
8
9
jobs :
9
10
array-api-tests :
12
13
matrix :
13
14
python-version : ['3.9', '3.10', '3.11', '3.12']
14
15
numpy-version : ['1.26', 'dev']
15
- api_version : ['2022.12', '2023.12']
16
16
exclude :
17
17
- python-version : ' 3.8'
18
18
numpy-version : ' dev'
@@ -50,12 +50,13 @@ jobs:
50
50
# tests fail in numpy 1.26 on bad scalar type promotion behavior)
51
51
NPY_PROMOTION_STATE : weak
52
52
run : |
53
- export ARRAY_API_STRICT_API_VERSION=${{ matrix.api_version }}
53
+ # Parameterizing this in the CI matrix is wasteful. Just do a loop here.
54
+ for ARRAY_API_STRICT_API_VERSION in ${API_VERSIONS}; do
55
+ # Only signature tests work for now for 2023.12
56
+ if [[ "$ARRAY_API_STRICT_API_VERSION" == "2023.12" ]]; then
57
+ PYTEST_ARGS="${PYTEST_ARGS} -k signature
58
+ fi
54
59
55
- # Only signature tests work for now for 2023.12
56
- if [[ "${{ matrix.api_version }}" == "2023.12" ]]; then
57
- PYTEST_ARGS="${PYTEST_ARGS} -k signature
58
- fi
59
-
60
- cd ${GITHUB_WORKSPACE}/array-api-tests
61
- pytest array_api_tests/ --skips-file ${GITHUB_WORKSPACE}/array-api-strict/array-api-tests-xfails.txt ${PYTEST_ARGS}
60
+ cd ${GITHUB_WORKSPACE}/array-api-tests
61
+ pytest array_api_tests/ --skips-file ${GITHUB_WORKSPACE}/array-api-strict/array-api-tests-xfails.txt ${PYTEST_ARGS}
62
+ done
0 commit comments