Skip to content

Commit 21aa31b

Browse files
authored
Merge pull request #321 from ev-br/test_ci_speedups
speed up CI
2 parents ecadf5b + 4343580 commit 21aa31b

8 files changed

+21
-3
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,5 +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=5
17+
pytest-extra-args: --max-examples=200 -n 4
1818
python-versions: '[''3.10'', ''3.13'']'
19+
extra-env-vars: |
20+
ARRAY_API_TESTS_XFAIL_MARK=skip

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +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
14+
extra-env-vars: |
15+
ARRAY_API_TESTS_XFAIL_MARK=skip

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +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
14+
extra-env-vars: |
15+
ARRAY_API_TESTS_XFAIL_MARK=skip

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +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
14+
extra-env-vars: |
15+
ARRAY_API_TESTS_XFAIL_MARK=skip

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

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

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,6 @@ jobs:
1010
extra-requires: '--index-url https://download.pytorch.org/whl/cpu'
1111
extra-env-vars: |
1212
ARRAY_API_TESTS_SKIP_DTYPES=uint16,uint32,uint64
13+
ARRAY_API_TESTS_XFAIL_MARK=skip
1314
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 200 -v -rxXfE --ci ${{ inputs.pytest-extra-args }} --hypothesis-disable-deadline --durations 10"
40+
PYTEST_ARGS: "--max-examples 1000 -v -rxXfE ${{ inputs.pytest-extra-args }} --hypothesis-disable-deadline --durations 20"
4141

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

numpy-1-22-xfails.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,8 @@ array_api_tests/test_operators_and_elementwise_functions.py::test_binary_with_sc
134134
array_api_tests/test_operators_and_elementwise_functions.py::test_binary_with_scalars_real[minimum]
135135
array_api_tests/test_operators_and_elementwise_functions.py::test_binary_with_scalars_real[copysign]
136136
array_api_tests/test_operators_and_elementwise_functions.py::test_binary_with_scalars_real[pow]
137-
array_api_tests/test_operators_and_elementwise_functions.py::test_binary_with_scalars_real[pow]
137+
array_api_tests/test_operators_and_elementwise_functions.py::test_binary_with_scalars_real[minimum]
138+
array_api_tests/test_operators_and_elementwise_functions.py::test_binary_with_scalars_real[atan2]
138139

139140
array_api_tests/test_operators_and_elementwise_functions.py::test_where_with_scalars
140141

0 commit comments

Comments
 (0)