File tree Expand file tree Collapse file tree 1 file changed +13
-3
lines changed Expand file tree Collapse file tree 1 file changed +13
-3
lines changed Original file line number Diff line number Diff line change 88 runs-on : ubuntu-latest
99 strategy :
1010 matrix :
11- python-version : ["3.10", "3.11"]
11+ python-version : ["3.11"]
12+ array-api-module : ["array_api_strict", "numpy", "torch", "jax.numpy"]
13+ fail-fast : false
1214
1315 steps :
1416 - name : Checkout array-api-tests
@@ -22,11 +24,19 @@ jobs:
2224 - name : Install dependencies
2325 run : |
2426 python -m pip install --upgrade pip
25- python -m pip install array-api-strict
27+ if [ ${{ matrix.array-api-module }} = 'torch' ]
28+ then
29+ python -m pip install torch --index-url https://download.pytorch.org/whl/cpu
30+ elif [ ${{ matrix.array-api-module }} = 'jax.numpy' ]
31+ then
32+ python -m pip install "jax[cpu]"
33+ else
34+ python -m pip install ${{ matrix.array-api-module }}
35+ fi
2636 python -m pip install -r requirements.txt
2737 - name : Run the test suite
2838 env :
29- ARRAY_API_TESTS_MODULE : array_api_strict
39+ ARRAY_API_TESTS_MODULE : ${{ matrix.array-api-module }}
3040 ARRAY_API_STRICT_API_VERSION : 2023.12
3141 run : |
3242 pytest -v -rxXfE --skips-file array-api-strict-skips.txt array_api_tests/
You can’t perform that action at this time.
0 commit comments