File tree Expand file tree Collapse file tree 1 file changed +12
-9
lines changed Expand file tree Collapse file tree 1 file changed +12
-9
lines changed Original file line number Diff line number Diff line change @@ -35,20 +35,23 @@ jobs:
3535          cache : " pip" 
3636          cache-dependency-path : | 
3737            **/pyproject.toml 
38-             **/requirements*.txt 
39-             **/test-requirements*.txt 
4038
4139       - name : Install dependencies 
4240        run : | 
43-           pip install -r test-requirements.txt --upgrade pip  
44-           pip install "urllib3==${{ matrix.urllib3-version }}"  
45- 
46-        -  if :  matrix.python-version == '3.10' && matrix.urllib3-version == '1.26.19' 
47-         name :  Run ` ruff` 
48-         run :  ruff check 
41+           pip install uv  
42+           export UV_LINK_MODE=copy && \  
43+             uv sync --group dev && \ 
44+             uv run ruff check --select I --fix . && \  
45+             uv run  ruff format . && \  
46+             uv build  
4947
5048       - name : Run tests and collect coverage 
51-         run : pytest --cov-fail-under 60 --cov openfga_sdk 
49+         run : | 
50+           export UV_LINK_MODE=copy && \ 
51+             uv sync --group dev && \ 
52+             uv run --with "urllib3==${{ matrix.urllib3-version }}" \ 
53+               pytest --cov-report term-missing --cov=openfga_sdk --cov-fail-under=80 test/ && \ 
54+             uv run ruff check . 
5255
5356       - if : matrix.python-version == '3.10' && matrix.urllib3-version == '1.26.19' 
5457        name : Upload coverage to Codecov 
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments