Skip to content

Commit 607bab6

Browse files
committed
Extract common pytest variables into an environment variable
1 parent 15eff4e commit 607bab6

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ name: Array API Tests
22

33
on: [push, pull_request]
44

5+
env:
6+
PYTEST_ARGS: "--max-examples 300 -v -rxXfE --ci -o xfail_strict=True"
7+
58
jobs:
69
tests:
710
runs-on: ubuntu-latest
@@ -42,4 +45,4 @@ jobs:
4245
run: |
4346
export PYTHONPATH="${GITHUB_WORKSPACE}/array-api-compat"
4447
cd ${GITHUB_WORKSPACE}/array-api-tests
45-
pytest --max-examples 300 -v -rxXfE --ci -o xfail_strict=True --xfails-file ${GITHUB_WORKSPACE}/array-api-compat/numpy-xfails.txt array_api_tests/
48+
pytest ${PYTEST_ARGS} --xfails-file ${GITHUB_WORKSPACE}/array-api-compat/numpy-xfails.txt array_api_tests/

0 commit comments

Comments
 (0)