Skip to content

Commit d1bc3aa

Browse files
committed
CI: try using -compat-wrapped modules
1 parent 9f499ef commit d1bc3aa

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/test.yml

+4-3
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
strategy:
1010
matrix:
1111
python-version: ["3.11"]
12-
array-api-module: ["array_api_strict", "numpy", "torch", "jax.numpy"]
12+
array-api-module: ["array_api_strict", "array_api_compat.numpy", "array_api_compat.torch", "jax.numpy"]
1313
fail-fast: false
1414

1515
steps:
@@ -24,16 +24,17 @@ jobs:
2424
- name: Install dependencies
2525
run: |
2626
python -m pip install --upgrade pip
27-
if [ ${{ matrix.array-api-module }} = 'torch' ]
27+
if [[ ${{ matrix.array-api-module }} == *"torch"* ]]
2828
then
2929
python -m pip install torch --index-url https://download.pytorch.org/whl/cpu
30-
elif [ ${{ matrix.array-api-module }} = 'jax.numpy' ]
30+
elif [[ ${{ matrix.array-api-module }} == *"jax.numpy"* ]]
3131
then
3232
python -m pip install "jax[cpu]"
3333
else
3434
python -m pip install ${{ matrix.array-api-module }}
3535
fi
3636
python -m pip install -r requirements.txt
37+
python -m pip install array-api-compat
3738
- name: Run the test suite
3839
env:
3940
ARRAY_API_TESTS_MODULE: ${{ matrix.array-api-module }}

0 commit comments

Comments
 (0)