1919 - name : Install dependencies
2020 run : |
2121 python -m pip install --upgrade pip
22- python -m pip install git+https://github.com/ numpy/numpy
22+ python -m pip install numpy==1.22.1
2323 python -m pip install -r requirements.txt
2424 - name : Run the test suite
2525 env :
@@ -28,26 +28,18 @@ jobs:
2828 # Mark some known issues as XFAIL
2929 cat << EOF >> xfails.txt
3030
31+ # copy not implemented
32+ array_api_tests/test_creation_functions.py::test_asarray_arrays
3133 # https://github.com/numpy/numpy/issues/18881
3234 array_api_tests/test_creation_functions.py::test_linspace
33- # einsum is not yet completed in the spec
34- array_api_tests/test_signatures.py::test_has_names[einsum]
35- # dlpack support is not yet implemented in NumPy
36- # See https://github.com/numpy/numpy/pull/19083
37- array_api_tests/test_signatures.py::test_function_positional_args[__dlpack__]
38- array_api_tests/test_signatures.py::test_function_positional_args[__dlpack_device__]
39- array_api_tests/test_signatures.py::test_function_positional_args[from_dlpack]
40- array_api_tests/test_signatures.py::test_function_positional_args[to_device]
41- array_api_tests/test_signatures.py::test_function_keyword_only_args[__dlpack__]
42- # floor_divide has an issue related to https://github.com/data-apis/array-api/issues/264
43- array_api_tests/test_elementwise_functions.py::test_floor_divide
44- # mesgrid doesn't return all arrays as the promoted dtype
45- array_api_tests/test_type_promotion.py::test_meshgrid
46- # https://github.com/numpy/numpy/pull/20066#issuecomment-947056094
47- array_api_tests/test_type_promotion.py::test_where
48- # shape mismatches are not handled
49- array_api_tests/test_type_promotion.py::test_tensordot
35+ # https://github.com/numpy/numpy/issues/20870
36+ array_api_tests/test_data_type_functions.py::test_can_cast
37+ # linalg tests generally need more mulling over
38+ array_api_tests/test_linalg.py
39+ # waiting on NumPy to allow/revert distinct NaNs for np.unique
40+ # https://github.com/numpy/numpy/issues/20326#issuecomment-1012380448
41+ array_api_tests/test_set_functions.py
5042
5143 EOF
5244
53- pytest -v -rxXfE
45+ pytest -v -rxXfE --ci
0 commit comments