File tree Expand file tree Collapse file tree 1 file changed +12
-15
lines changed Expand file tree Collapse file tree 1 file changed +12
-15
lines changed Original file line number Diff line number Diff line change @@ -40,25 +40,22 @@ concurrency:
4040
4141jobs :
4242  ruff :
43-     runs-on : ${{ matrix.os }} 
44-     strategy :
45-       fail-fast : false 
46-       #  Ruff is version and platform sensible
47-       matrix :
48-         os : [windows-latest, ubuntu-22.04] 
49-         python-version : ["3.11", "3.12", "3.13"] 
43+     runs-on : ubuntu-22.04 
5044    steps :
5145      - name : Checkout ${{ github.repository }}/${{ github.ref }} 
5246        uses : actions/checkout@v4 
53-       - name : Set up Python ${{ matrix.python-version }} 
54-         uses : actions/setup-python@v5 
55-         with :
56-           python-version : ${{ matrix.python-version }} 
57-           cache : " pip" 
58-           cache-dependency-path : " scripts/requirements*.txt" 
59-       - run : scripts/install.ps1 
47+       - name : Get Ruff version 
48+         id : ruff_version 
49+         #  We need an exact value, feature request for any valid range specifier
50+         #  https://github.com/astral-sh/ruff-action/issues/11
51+         run : | 
52+           $Env:RUFF_VERSION=Select-String -path pyproject.toml -pattern 'ruff ?([=<>~]?= ?.+?)"' | %{ $_.Matches[0].Groups[1].Value } 
53+           echo $Env:RUFF_VERSION 
54+           echo "RUFF_VERSION=$Env:RUFF_VERSION" >> $Env:GITHUB_OUTPUT 
6055shell : pwsh 
61-       - run : ruff check . 
56+       - uses : astral-sh/ruff-action@v2 
57+         with :
58+           version : ${{ steps.ruff_version.outputs.RUFF_VERSION }} 
6259  Pyright :
6360    runs-on : ${{ matrix.os }} 
6461    strategy :
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments