Add support for Array API in NamedArray #2
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/ |