Skip to content

Commit 232e703

Browse files
committed
CI: use 4 workers; bump the # of examples to 1000 (np/torch), 200 (dask)
1 parent 46e9711 commit 232e703

7 files changed

+8
-2
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
# workflow is barely more than a smoke test, and one should expect extreme
1515
# flakiness. Before changes to dask-xfails.txt or dask-skips.txt, please run
1616
# the full test suite with at least 200 examples.
17-
pytest-extra-args: --max-examples=50
17+
pytest-extra-args: --max-examples=200 -n 4
1818
python-versions: '[''3.10'', ''3.13'']'
1919
extra-env-vars: |
2020
ARRAY_API_TESTS_XFAIL_MARK=skip

.github/workflows/array-api-tests-numpy-1-22.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,6 @@ jobs:
1010
package-version: '== 1.22.*'
1111
xfails-file-extra: '-1-22'
1212
python-versions: '[''3.10'']'
13+
pytest-extra-args: -n 4
1314
extra-env-vars: |
1415
ARRAY_API_TESTS_XFAIL_MARK=skip

.github/workflows/array-api-tests-numpy-1-26.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,6 @@ jobs:
1010
package-version: '== 1.26.*'
1111
xfails-file-extra: '-1-26'
1212
python-versions: '[''3.10'', ''3.12'']'
13+
pytest-extra-args: -n 4
1314
extra-env-vars: |
1415
ARRAY_API_TESTS_XFAIL_MARK=skip

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,6 @@ jobs:
1010
extra-requires: '--pre --extra-index https://pypi.anaconda.org/scientific-python-nightly-wheels/simple'
1111
xfails-file-extra: '-dev'
1212
python-versions: '[''3.11'', ''3.13'']'
13+
pytest-extra-args: -n 4
1314
extra-env-vars: |
1415
ARRAY_API_TESTS_XFAIL_MARK=skip

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,6 @@ jobs:
88
with:
99
package-name: numpy
1010
python-versions: '[''3.10'', ''3.13'']'
11+
pytest-extra-args: -n 4
1112
extra-env-vars: |
1213
ARRAY_API_TESTS_XFAIL_MARK=skip

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,4 @@ jobs:
1212
ARRAY_API_TESTS_SKIP_DTYPES=uint16,uint32,uint64
1313
ARRAY_API_TESTS_XFAIL_MARK=skip
1414
python-versions: '[''3.10'', ''3.13'']'
15+
pytest-extra-args: -n 4

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ on:
3737
description: Multiline string of environment variables to set for the test run.
3838

3939
env:
40-
PYTEST_ARGS: "--max-examples 500 -v -rxXfE --ci ${{ inputs.pytest-extra-args }} --hypothesis-disable-deadline --durations 20"
40+
PYTEST_ARGS: "--max-examples 1000 -v -rxXfE --ci ${{ inputs.pytest-extra-args }} --hypothesis-disable-deadline --durations 20"
4141

4242
jobs:
4343
tests:
@@ -77,6 +77,7 @@ jobs:
7777
python -m pip install --upgrade pip
7878
python -m pip install '${{ inputs.package-name }} ${{ inputs.package-version }}' ${{ inputs.extra-requires }}
7979
python -m pip install -r ${GITHUB_WORKSPACE}/array-api-tests/requirements.txt
80+
python -m pip install pytest-xdist
8081
8182
- name: Dump pip environment
8283
run: pip freeze

0 commit comments

Comments
 (0)