File tree 1 file changed +8
-2
lines changed
1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change 6
6
package-name :
7
7
required : true
8
8
type : string
9
+ module-name :
10
+ required : false
11
+ type : string
12
+ extra-requires :
13
+ required : false
14
+ type : string
9
15
package-version :
10
16
required : false
11
17
type : string
@@ -54,12 +60,12 @@ jobs:
54
60
if : " ! (matrix.python-version == '3.11' && inputs.package-name == 'numpy' && contains(inputs.package-version, '1.21'))"
55
61
run : |
56
62
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 }}
58
64
python -m pip install -r ${GITHUB_WORKSPACE}/array-api-tests/requirements.txt
59
65
- name : Run the array API testsuite (${{ inputs.package-name }})
60
66
if : " ! (matrix.python-version == '3.11' && inputs.package-name == 'numpy' && contains(inputs.package-version, '1.21'))"
61
67
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 }}
63
69
# This enables the NEP 50 type promotion behavior (without it a lot of
64
70
# tests fail on bad scalar type promotion behavior)
65
71
NPY_PROMOTION_STATE : weak
You can’t perform that action at this time.
0 commit comments