File tree Expand file tree Collapse file tree 6 files changed +29
-10
lines changed Expand file tree Collapse file tree 6 files changed +29
-10
lines changed Original file line number Diff line number Diff line change 2020    uses : ./.github/workflows/unittests_python.yml 
2121    with :
2222      trigger-sha : ${{ github.sha }} 
23+       run-on-macos : true 
2324
2425  build-and-release-nightly :
2526    needs : run-unittests-python 
Original file line number Diff line number Diff line change 2020    uses : ./.github/workflows/unittests_python.yml 
2121    with :
2222      trigger-sha : ${{ github.sha }} 
23+       run-on-macos : true 
Original file line number Diff line number Diff line change 2828    uses : ./.github/workflows/unittests_python.yml 
2929    with :
3030      trigger-sha : ${{ github.event.after }} 
31+       run-on-macos : false 
Original file line number Diff line number Diff line change 6464    uses : ./.github/workflows/unittests_python.yml 
6565    with :
6666      trigger-sha : ${{ github.event.pull_request.head.sha }} 
67+       run-on-macos : false 
6768
6869  run-model-coverage :
6970    name : Model Coverage 
Original file line number Diff line number Diff line change 1212  workflow_call :
1313    inputs :
1414      trigger-sha :
15-         required : true 
1615        type : string 
17- 
16+         required : true 
17+       run-on-macos :
18+         type : boolean 
19+         default : false 
1820jobs :
21+   prepare-matrix :
22+     runs-on : ubuntu-latest 
23+     outputs :
24+       os : ${{ steps.set-matrix.outputs.os }} 
25+     steps :
26+       - name : Set matrix 
27+         id : set-matrix 
28+         run : | 
29+           os=("Linux_runner_8_core") 
30+           if [[ "${{ inputs.run-on-macos }}" == "true" ]]; then 
31+             os+=("macos-latest") 
32+           fi 
33+           os=$(jq -c -n '$ARGS.positional' --args "${os[@]}") 
34+           echo "os=${os}" 
35+           echo "os=${os}" >> $GITHUB_OUTPUT 
1936test :
37+     needs : prepare-matrix 
2038    strategy :
2139      matrix :
2240        python-version : ["3.10", "3.11"] 
23-     runs-on : 
24-        labels :  Linux_runner_8_core 
41+          os :  ${{ fromJson(needs.prepare-matrix.outputs.os) }} 
42+     runs-on :  ${{ matrix.os }} 
2543    steps :
2644      - uses : actions/checkout@v3 
2745        with :
Original file line number Diff line number Diff line change 1- -f  https://download.pytorch.org/whl/torch/ 
2- torch == 2.5.1+cpu 
3- -f  https://download.pytorch.org/whl/torchvision/ 
4- torchvision == 0.20.1+cpu 
5- -f  https://download.pytorch.org/whl/torchaudio/ 
6- torchaudio == 2.5.1+cpu 
1+ torch == 2.5.1 
2+ torchvision == 0.20.1 
3+ torchaudio == 2.5.1 
74--pre 
85tf-nightly >= 2.19.0.dev20241201 
96ai-edge-litert-nightly 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments