File tree Expand file tree Collapse file tree 1 file changed +12
-3
lines changed Expand file tree Collapse file tree 1 file changed +12
-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,18 @@ 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+           python -m pip install "jax[cpu]" 
32+         else 
33+           python -m pip install ${{ matrix.array-api-module }} 
34+         fi 
2635        python -m pip install -r requirements.txt 
2736name : Run the test suite 
2837      env :
29-         ARRAY_API_TESTS_MODULE : array_api_strict 
38+         ARRAY_API_TESTS_MODULE : ${{ matrix.array-api-module }} 
3039        ARRAY_API_STRICT_API_VERSION : 2023.12 
3140      run : | 
3241        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