Skip to content

Commit 642bbd1

Browse files
committed
Allow the xfails and skips files to be specified as inputs
1 parent 19dc410 commit 642bbd1

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

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

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,14 @@ on:
99
pytest-extra-args:
1010
required: false
1111
type: string
12-
12+
xfails-file:
13+
required: false
14+
type: string
15+
default: '${{ inputs.package-name }}-xfails.txt'
16+
skips-file:
17+
required: false
18+
type: string
19+
default: '${{ inputs.package-name }}-skips.txt'
1320

1421
env:
1522
PYTEST_ARGS: "--max-examples 200 -v -rxXfE --ci ${{ inputs.pytest-extra-args }}"
@@ -54,4 +61,4 @@ jobs:
5461
run: |
5562
export PYTHONPATH="${GITHUB_WORKSPACE}/array-api-compat"
5663
cd ${GITHUB_WORKSPACE}/array-api-tests
57-
pytest ${PYTEST_ARGS} --xfails-file ${GITHUB_WORKSPACE}/array-api-compat/${{ inputs.package-name }}-xfails.txt --skips-file ${GITHUB_WORKSPACE}/array-api-compat/${{ inputs.package-name }}-skips.txt array_api_tests/
64+
pytest ${PYTEST_ARGS} --xfails-file ${GITHUB_WORKSPACE}/array-api-compat/${{ inputs.xfails-file }} --skips-file ${GITHUB_WORKSPACE}/array-api-compat/${{ inputs.skips-file }} array_api_tests/

0 commit comments

Comments
 (0)