Skip to content

Initial implementation of the Python Array API standard #10

Initial implementation of the Python Array API standard

Initial implementation of the Python Array API standard #10

Workflow file for this run

name: JAX Array API
on:
workflow_dispatch: # allows triggering the workflow run manually
pull_request: # Automatically trigger on pull requests affecting this file
branches:
- main
paths:
- '**workflows/jax-array-api.yml'
- '**experimental/array_api/**'
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.11]
steps:
- name: Checkout jax
uses: actions/checkout@v3
- name: Checkout array-api-tests
uses: actions/checkout@v3
with:
repository: data-apis/array-api-tests
submodules: 'true'
path: 'array-api-tests'
- name: Fix array-apis bug
# Temporary workaround for https://github.com/data-apis/array-api/issues/631
run: |
sed -i -e 's/\\/\\\\/g' array-api-tests/array-api/spec/API_specification/signatures/*.py
- 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 .[cpu]
python -m pip install -r array-api-tests/requirements.txt
- name: Run the test suite
env:
ARRAY_API_TESTS_MODULE: jax.experimental.array_api
JAX_ENABLE_X64: 'true'
run: |
pytest --ci array-api-tests/array_api_tests/