Skip to content

Commit 100a317

Browse files
committed
CI: try -n 2
1 parent 46e9711 commit 100a317

7 files changed

+7
-1
lines changed

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

+1-1
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=50 -n 2
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

+1
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 2
1314
extra-env-vars: |
1415
ARRAY_API_TESTS_XFAIL_MARK=skip

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

+1
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 2
1314
extra-env-vars: |
1415
ARRAY_API_TESTS_XFAIL_MARK=skip

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

+1
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 2
1314
extra-env-vars: |
1415
ARRAY_API_TESTS_XFAIL_MARK=skip

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

+1
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 2
1112
extra-env-vars: |
1213
ARRAY_API_TESTS_XFAIL_MARK=skip

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

+1
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 2

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

+1
Original file line numberDiff line numberDiff line change
@@ -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)