Skip to content

Commit 52a6b83

Browse files
authored
Do strict checking of Array API in CI job. (#671)
* Do strict checking of Array API in CI job. * Add numba backend tests to `.coveragerc`
1 parent 8b05ee3 commit 52a6b83

File tree

3 files changed

+2
-8
lines changed

3 files changed

+2
-8
lines changed

.coveragerc

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ source=
55
omit=
66
sparse/_version.py
77
sparse/tests/*
8+
sparse/numba_backend/tests/*
89

910
[report]
1011
exclude_lines =

.github/workflows/ci.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ jobs:
150150
SPARSE_BACKEND: Finch
151151
run: |
152152
cd ${GITHUB_WORKSPACE}/array-api-tests
153-
pytest array_api_tests/test_signatures.py -v -c pytest.ini --ci --max-examples=2 --derandomize --disable-deadline --skips-file ${GITHUB_WORKSPACE}/ci/array-api-skips.txt
153+
pytest array_api_tests/test_signatures.py -v -c pytest.ini --ci --max-examples=2 --derandomize --disable-deadline -o xfail_strict=True --xfails-file ${GITHUB_WORKSPACE}/ci/array-api-skips.txt
154154
on:
155155
# Trigger the workflow on push or pull request,
156156
# but only for the main branch

ci/array-api-skips.txt

-7
Original file line numberDiff line numberDiff line change
@@ -36,20 +36,13 @@ array_api_tests/test_signatures.py::test_func_signature[iinfo]
3636
array_api_tests/test_signatures.py::test_func_signature[result_type]
3737

3838
# bitwise functions
39-
array_api_tests/test_signatures.py::test_func_signature[bitwise_left_shift]
40-
array_api_tests/test_signatures.py::test_func_signature[bitwise_invert]
41-
array_api_tests/test_signatures.py::test_func_signature[bitwise_right_shift]
42-
array_api_tests/test_signatures.py::test_func_signature[bitwise_and]
43-
array_api_tests/test_signatures.py::test_func_signature[bitwise_or]
44-
array_api_tests/test_signatures.py::test_func_signature[bitwise_xor]
4539
array_api_tests/test_signatures.py::test_func_signature[logical_and]
4640
array_api_tests/test_signatures.py::test_func_signature[logical_not]
4741
array_api_tests/test_signatures.py::test_func_signature[logical_or]
4842
array_api_tests/test_signatures.py::test_func_signature[logical_xor]
4943

5044
# other functions
5145
array_api_tests/test_signatures.py::test_func_signature[concat]
52-
array_api_tests/test_signatures.py::test_func_signature[permute_dims]
5346
array_api_tests/test_signatures.py::test_func_signature[reshape]
5447
array_api_tests/test_signatures.py::test_func_signature[argsort]
5548
array_api_tests/test_signatures.py::test_func_signature[sort]

0 commit comments

Comments
 (0)