Skip to content

Commit

Permalink
Add ci for array-api-tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Illviljan committed Aug 18, 2024
1 parent 19ad726 commit c71c9c4
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/array-api-tests.yml
Original file line number Diff line number Diff line change
@@ -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/

0 comments on commit c71c9c4

Please sign in to comment.