From 0074b8680d775093afa980762b17457e170b0e4a Mon Sep 17 00:00:00 2001 From: Jake VanderPlas Date: Mon, 13 Nov 2023 15:32:12 -0800 Subject: [PATCH 1/3] CI: bump numpy version to fix errors --- .github/workflows/numpy.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/numpy.yml b/.github/workflows/numpy.yml index 5cced17c..6ca4096e 100644 --- a/.github/workflows/numpy.yml +++ b/.github/workflows/numpy.yml @@ -8,7 +8,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: [3.8, 3.9] + python-version: ["3.10", "3.11"] steps: - name: Checkout array-api-tests @@ -22,7 +22,7 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip - python -m pip install numpy==1.22.1 + python -m pip install numpy==1.26.2 python -m pip install -r requirements.txt - name: Run the test suite env: From 9c0a539d4c025b3b416b5d1c6592c0a7a7673721 Mon Sep 17 00:00:00 2001 From: Jake VanderPlas Date: Mon, 13 Nov 2023 15:48:49 -0800 Subject: [PATCH 2/3] Skip newaxis test for numpy 1.26.2 --- numpy-skips.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/numpy-skips.txt b/numpy-skips.txt index 9f6c32aa..37ca7122 100644 --- a/numpy-skips.txt +++ b/numpy-skips.txt @@ -9,6 +9,9 @@ array_api_tests/test_linalg.py::test_trace # https://github.com/numpy/numpy/issues/20326#issuecomment-1012380448 array_api_tests/test_set_functions.py +# newaxis not included in numpy namespace as of v1.26.2 +array_api_tests/test_constants.py::test_newaxis + # https://github.com/numpy/numpy/issues/21373 array_api_tests/test_array_object.py::test_getitem From d2f4a3cc7050d7fdd3e18a75873a276d79f2ffba Mon Sep 17 00:00:00 2001 From: Ralf Gommers Date: Tue, 14 Nov 2023 14:23:32 +0100 Subject: [PATCH 3/3] Skip `test_solve` for numpy 1.26.2 as well --- numpy-skips.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/numpy-skips.txt b/numpy-skips.txt index 37ca7122..6ade0e7f 100644 --- a/numpy-skips.txt +++ b/numpy-skips.txt @@ -12,6 +12,9 @@ array_api_tests/test_set_functions.py # newaxis not included in numpy namespace as of v1.26.2 array_api_tests/test_constants.py::test_newaxis +# linalg.solve issue in numpy.array_api as of v1.26.2 (see numpy#25146) +array_api_tests/test_linalg.py::test_solve + # https://github.com/numpy/numpy/issues/21373 array_api_tests/test_array_object.py::test_getitem