From c71c9c41141a4212d807d9a7f261af7917f6892c Mon Sep 17 00:00:00 2001 From: Illviljan <14371165+Illviljan@users.noreply.github.com> Date: Sun, 18 Aug 2024 15:10:22 +0200 Subject: [PATCH] Add ci for array-api-tests --- .github/workflows/array-api-tests.yml | 32 +++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/workflows/array-api-tests.yml diff --git a/.github/workflows/array-api-tests.yml b/.github/workflows/array-api-tests.yml new file mode 100644 index 00000000000..e0dc9168f96 --- /dev/null +++ b/.github/workflows/array-api-tests.yml @@ -0,0 +1,32 @@ +name: Test NamedArray._array_api + +on: [push, pull_request] + +jobs: + build: + + runs-on: ubuntu-latest + strategy: + matrix: + python-version: ["3.12"] + + steps: + - name: Checkout array-api-tests + uses: actions/checkout@v1 + with: + submodules: 'true' + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v1 + with: + python-version: ${{ matrix.python-version }} + - name: Install dependencies + run: | + python -m pip install --upgrade pip + python -m pip install xarray + python -m pip install -r requirements.txt + - name: Run the test suite + env: + ARRAY_API_TESTS_MODULE: xarray.namedarray._array_api + ARRAY_API_STRICT_API_VERSION: 2023.12 + run: | + pytest -v -rxXfE array_api_tests/