File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed
Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change 66 package-name :
77 required : true
88 type : string
9+ module-name :
10+ required : false
11+ type : string
12+ extra-requires :
13+ required : false
14+ type : string
915 package-version :
1016 required : false
1117 type : string
@@ -54,12 +60,12 @@ jobs:
5460 if : " ! (matrix.python-version == '3.11' && inputs.package-name == 'numpy' && contains(inputs.package-version, '1.21'))"
5561 run : |
5662 python -m pip install --upgrade pip
57- python -m pip install '${{ inputs.package-name }} ${{ inputs.package-version }}'
63+ python -m pip install '${{ inputs.package-name }} ${{ inputs.package-version }}' ${{ inputs.extra-requires }}
5864 python -m pip install -r ${GITHUB_WORKSPACE}/array-api-tests/requirements.txt
5965 - name : Run the array API testsuite (${{ inputs.package-name }})
6066 if : " ! (matrix.python-version == '3.11' && inputs.package-name == 'numpy' && contains(inputs.package-version, '1.21'))"
6167 env :
62- ARRAY_API_TESTS_MODULE : array_api_compat.${{ inputs.package-name }}
68+ ARRAY_API_TESTS_MODULE : array_api_compat.${{ inputs.module-name || inputs. package-name }}
6369 # This enables the NEP 50 type promotion behavior (without it a lot of
6470 # tests fail on bad scalar type promotion behavior)
6571 NPY_PROMOTION_STATE : weak
You can’t perform that action at this time.
0 commit comments