19
19
- name : Install dependencies
20
20
run : |
21
21
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
23
23
python -m pip install -r requirements.txt
24
24
- name : Run the test suite
25
25
env :
@@ -28,26 +28,18 @@ jobs:
28
28
# Mark some known issues as XFAIL
29
29
cat << EOF >> xfails.txt
30
30
31
+ # copy not implemented
32
+ array_api_tests/test_creation_functions.py::test_asarray_arrays
31
33
# https://github.com/numpy/numpy/issues/18881
32
34
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
50
42
51
43
EOF
52
44
53
- pytest -v -rxXfE
45
+ pytest -v -rxXfE --ci
0 commit comments