Skip to content

Commit ae488cc

Browse files
committed
Allow specifying extra-requires in the GitHub Actions config
This is a change from data-apis#76.
1 parent 2d30901 commit ae488cc

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

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

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,12 @@ on:
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

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy