Skip to content

Commit

Permalink
Do strict checking of Array API in CI job. (#671)
Browse files Browse the repository at this point in the history
* Do strict checking of Array API in CI job.

* Add numba backend tests to `.coveragerc`
  • Loading branch information
hameerabbasi authored Apr 30, 2024
1 parent 8b05ee3 commit 52a6b83
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 8 deletions.
1 change: 1 addition & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ source=
omit=
sparse/_version.py
sparse/tests/*
sparse/numba_backend/tests/*

[report]
exclude_lines =
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ jobs:
SPARSE_BACKEND: Finch
run: |
cd ${GITHUB_WORKSPACE}/array-api-tests
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
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
on:
# Trigger the workflow on push or pull request,
# but only for the main branch
Expand Down
7 changes: 0 additions & 7 deletions ci/array-api-skips.txt
Original file line number Diff line number Diff line change
Expand Up @@ -36,20 +36,13 @@ array_api_tests/test_signatures.py::test_func_signature[iinfo]
array_api_tests/test_signatures.py::test_func_signature[result_type]

# bitwise functions
array_api_tests/test_signatures.py::test_func_signature[bitwise_left_shift]
array_api_tests/test_signatures.py::test_func_signature[bitwise_invert]
array_api_tests/test_signatures.py::test_func_signature[bitwise_right_shift]
array_api_tests/test_signatures.py::test_func_signature[bitwise_and]
array_api_tests/test_signatures.py::test_func_signature[bitwise_or]
array_api_tests/test_signatures.py::test_func_signature[bitwise_xor]
array_api_tests/test_signatures.py::test_func_signature[logical_and]
array_api_tests/test_signatures.py::test_func_signature[logical_not]
array_api_tests/test_signatures.py::test_func_signature[logical_or]
array_api_tests/test_signatures.py::test_func_signature[logical_xor]

# other functions
array_api_tests/test_signatures.py::test_func_signature[concat]
array_api_tests/test_signatures.py::test_func_signature[permute_dims]
array_api_tests/test_signatures.py::test_func_signature[reshape]
array_api_tests/test_signatures.py::test_func_signature[argsort]
array_api_tests/test_signatures.py::test_func_signature[sort]
Expand Down

0 comments on commit 52a6b83

Please sign in to comment.