Skip to content

Commit 723678f

Browse files
committed
MAINT: Update array-api-tests job
1 parent 44fddc2 commit 723678f

File tree

2 files changed

+13
-43
lines changed

2 files changed

+13
-43
lines changed

.github/workflows/linux.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ jobs:
225225
uses: actions/checkout@v4
226226
with:
227227
repository: data-apis/array-api-tests
228-
ref: '9afe8c709d81f005c98d383c82ad5e1c2cd8166c' # Latest commit as of 2023-11-24
228+
ref: '3cf8ef654c456d9fd1633d64e67b4470465940e9' # Latest commit as of 2024-04-09
229229
submodules: 'true'
230230
path: 'array-api-tests'
231231
- name: Set up Python
@@ -246,8 +246,6 @@ jobs:
246246
PYTHONWARNINGS: 'ignore::UserWarning::,ignore::DeprecationWarning::,ignore::RuntimeWarning::'
247247
run: |
248248
cd ${GITHUB_WORKSPACE}/array-api-tests
249-
# remove once https://github.com/data-apis/array-api-tests/pull/217 is merged
250-
touch pytest.ini
251249
pytest array_api_tests -v -c pytest.ini --ci --max-examples=2 --derandomize --disable-deadline --skips-file ${GITHUB_WORKSPACE}/tools/ci/array-api-skips.txt
252250
253251
custom_checks:

tools/ci/array-api-skips.txt

Lines changed: 12 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -1,50 +1,22 @@
1-
# 'unique_inverse' output array is 1-D for 0-D input
2-
array_api_tests/test_set_functions.py::test_unique_all
3-
array_api_tests/test_set_functions.py::test_unique_inverse
4-
5-
# https://github.com/numpy/numpy/issues/21213
6-
array_api_tests/test_special_cases.py::test_iop[__ipow__(x1_i is -infinity and x2_i > 0 and not (x2_i.is_integer() and x2_i % 2 == 1)) -> +infinity]
7-
array_api_tests/test_special_cases.py::test_iop[__ipow__(x1_i is -0 and x2_i > 0 and not (x2_i.is_integer() and x2_i % 2 == 1)) -> +0]
8-
# noted diversions from spec
9-
array_api_tests/test_special_cases.py::test_binary[floor_divide(x1_i is +infinity and isfinite(x2_i) and x2_i > 0) -> +infinity]
10-
array_api_tests/test_special_cases.py::test_binary[floor_divide(x1_i is +infinity and isfinite(x2_i) and x2_i < 0) -> -infinity]
11-
array_api_tests/test_special_cases.py::test_binary[floor_divide(x1_i is -infinity and isfinite(x2_i) and x2_i > 0) -> -infinity]
12-
array_api_tests/test_special_cases.py::test_binary[floor_divide(x1_i is -infinity and isfinite(x2_i) and x2_i < 0) -> +infinity]
13-
array_api_tests/test_special_cases.py::test_binary[floor_divide(isfinite(x1_i) and x1_i > 0 and x2_i is -infinity) -> -0]
14-
array_api_tests/test_special_cases.py::test_binary[floor_divide(isfinite(x1_i) and x1_i < 0 and x2_i is +infinity) -> -0]
15-
array_api_tests/test_special_cases.py::test_binary[__floordiv__(x1_i is +infinity and isfinite(x2_i) and x2_i > 0) -> +infinity]
16-
array_api_tests/test_special_cases.py::test_binary[__floordiv__(x1_i is +infinity and isfinite(x2_i) and x2_i < 0) -> -infinity]
17-
array_api_tests/test_special_cases.py::test_binary[__floordiv__(x1_i is -infinity and isfinite(x2_i) and x2_i > 0) -> -infinity]
18-
array_api_tests/test_special_cases.py::test_binary[__floordiv__(x1_i is -infinity and isfinite(x2_i) and x2_i < 0) -> +infinity]
19-
array_api_tests/test_special_cases.py::test_binary[__floordiv__(isfinite(x1_i) and x1_i > 0 and x2_i is -infinity) -> -0]
20-
array_api_tests/test_special_cases.py::test_binary[__floordiv__(isfinite(x1_i) and x1_i < 0 and x2_i is +infinity) -> -0]
21-
array_api_tests/test_special_cases.py::test_iop[__ifloordiv__(x1_i is +infinity and isfinite(x2_i) and x2_i > 0) -> +infinity]
22-
array_api_tests/test_special_cases.py::test_iop[__ifloordiv__(x1_i is +infinity and isfinite(x2_i) and x2_i < 0) -> -infinity]
23-
array_api_tests/test_special_cases.py::test_iop[__ifloordiv__(x1_i is -infinity and isfinite(x2_i) and x2_i > 0) -> -infinity]
24-
array_api_tests/test_special_cases.py::test_iop[__ifloordiv__(x1_i is -infinity and isfinite(x2_i) and x2_i < 0) -> +infinity]
25-
array_api_tests/test_special_cases.py::test_iop[__ifloordiv__(isfinite(x1_i) and x1_i > 0 and x2_i is -infinity) -> -0]
26-
array_api_tests/test_special_cases.py::test_iop[__ifloordiv__(isfinite(x1_i) and x1_i < 0 and x2_i is +infinity) -> -0]
27-
28-
# fft test suite is buggy as of 83f0bcdc
29-
array_api_tests/test_fft.py
30-
311
# finfo return type misalignment
322
array_api_tests/test_data_type_functions.py::test_finfo[float32]
333

34-
# a few misalignments
35-
array_api_tests/test_operators_and_elementwise_functions.py
36-
array_api_tests/test_signatures.py::test_func_signature[std]
37-
array_api_tests/test_signatures.py::test_func_signature[var]
38-
array_api_tests/test_signatures.py::test_func_signature[asarray]
39-
array_api_tests/test_signatures.py::test_func_signature[reshape]
40-
array_api_tests/test_signatures.py::test_array_method_signature[__array_namespace__]
4+
# out.dtype=float32, but should be int16
5+
# dtype('float16') not found
6+
array_api_tests/test_operators_and_elementwise_functions.py::test_ceil
7+
array_api_tests/test_operators_and_elementwise_functions.py::test_floor
8+
array_api_tests/test_operators_and_elementwise_functions.py::test_trunc
419

42-
# missing 'copy' keyword argument, 'newshape' should be named 'shape'
10+
# 'newshape' should be named 'shape'
4311
array_api_tests/test_signatures.py::test_func_signature[reshape]
4412

4513
# missing 'descending' keyword arguments
4614
array_api_tests/test_signatures.py::test_func_signature[argsort]
4715
array_api_tests/test_signatures.py::test_func_signature[sort]
4816

49-
# assertionError: out.dtype=float32, but should be float64 [sum(float32)]
50-
array_api_tests/test_statistical_functions.py::test_sum
17+
# nonzero for 0D should error
18+
array_api_tests/test_searching_functions.py::test_nonzero_zerodim_error
19+
20+
# TODO: check why in CI `inspect.signature(np.vecdot)` returns (*arg, **kwarg)
21+
# instead of raising ValueError. mtsokol: couldn't reproduce locally
22+
array_api_tests/test_signatures.py::test_func_signature[vecdot]

0 commit comments

Comments
 (0)