Skip to content

Commit a814464

Browse files
committed
add github action
1 parent a3ac7bd commit a814464

File tree

2 files changed

+43
-0
lines changed

2 files changed

+43
-0
lines changed

.github/workflows/jax-array-api.yml

+41
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: JAX Array API
2+
3+
on:
4+
workflow_dispatch: # allows triggering the workflow run manually
5+
pull_request: # Automatically trigger on pull requests affecting this file
6+
branches:
7+
- main
8+
paths:
9+
- '**workflows/jax-array-api.yml'
10+
- '**experimental/array_api/**'
11+
12+
jobs:
13+
build:
14+
15+
runs-on: ubuntu-latest
16+
strategy:
17+
matrix:
18+
python-version: [3.11]
19+
20+
steps:
21+
- name: Checkout jax
22+
uses: actions/checkout@v3
23+
- name: Checkout array-api-tests
24+
uses: actions/checkout@v3
25+
with:
26+
repository: data-apis/array-api-tests
27+
submodules: 'true'
28+
path: 'array-api-tests'
29+
- name: Set up Python ${{ matrix.python-version }}
30+
uses: actions/setup-python@v1
31+
with:
32+
python-version: ${{ matrix.python-version }}
33+
- name: Install dependencies
34+
run: |
35+
python -m pip install .[cpu]
36+
python -m pip install -r array-api-tests/requirements.txt
37+
- name: Run the test suite
38+
env:
39+
ARRAY_API_TESTS_MODULE: jax.experimental.array_api
40+
run: |
41+
pytest --ci array-api-tests/array_api_tests/

pyproject.toml

+2
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,8 @@ markers = [
5757
]
5858
filterwarnings = [
5959
"error",
60+
"ignore:The numpy.array_api submodule is still experimental.:UserWarning",
61+
"ignore:The hookimpl.*:DeprecationWarning",
6062
"ignore:No GPU/TPU found, falling back to CPU.:UserWarning",
6163
"ignore:xmap is an experimental feature and probably has bugs!",
6264
"ignore:the imp module is deprecated in favour of importlib.*:DeprecationWarning",

0 commit comments

Comments
 (0)