File tree Expand file tree Collapse file tree 3 files changed +75
-55
lines changed Expand file tree Collapse file tree 3 files changed +75
-55
lines changed Original file line number Diff line number Diff line change 1+ name : CI 
2+ 
3+ on :
4+   push :
5+     branches :
6+     - main 
7+   pull_request :
8+ 
9+ jobs :
10+   tests :
11+     name : Python ${{ matrix.python-version }} 
12+     runs-on : ubuntu-20.04 
13+ 
14+     strategy :
15+       matrix :
16+         python-version :
17+         - ' 3.6' 
18+         - ' 3.7' 
19+         - ' 3.8' 
20+         - ' 3.9' 
21+ 
22+     steps :
23+     - uses : actions/checkout@v2 
24+ 
25+     - uses : actions/setup-python@v2 
26+       with :
27+         python-version : ${{ matrix.python-version }} 
28+ 
29+     - uses : actions/cache@v2 
30+       with :
31+         path : ~/.cache/pip 
32+         key : ${{ runner.os }}-pip-${{ hashFiles('requirements/*.txt') }} 
33+         restore-keys : | 
34+           ${{ runner.os }}-pip- 
35+ 
36+ name : Upgrade packaging tools 
37+       run : python -m pip install --upgrade pip setuptools virtualenv wheel 
38+ 
39+     - name : Install dependencies 
40+       run : python -m pip install --upgrade codecov tox 
41+ 
42+     - name : Run tox targets for ${{ matrix.python-version }} 
43+       run : | 
44+         ENV_PREFIX=$(tr -C -d "0-9" <<< "${{ matrix.python-version }}") 
45+         TOXENV=$(tox --listenvs | grep "^py$ENV_PREFIX" | tr '\n' ',') tox 
46+ 
47+ name : Run extra tox targets 
48+       if : ${{ matrix.python-version == '3.9' }} 
49+       run : | 
50+         python setup.py bdist_wheel 
51+         rm -r djangorestframework.egg-info  # see #6139 
52+         tox -e base,dist,docs 
53+         tox -e dist --installpkg ./dist/djangorestframework-*.whl 
54+ 
55+ name : Upload coverage 
56+       run : | 
57+         codecov -e TOXENV,DJANGO 
Load Diff This file was deleted. 
Original file line number Diff line number Diff line change @@ -49,3 +49,21 @@ commands = mkdocs build
4949deps  =
5050       -rrequirements/requirements-testing.txt
5151       -rrequirements/requirements-documentation.txt
52+ 
53+ [testenv:py36-django32] 
54+ ignore_outcome  = true
55+ 
56+ [testenv:py37-django32] 
57+ ignore_outcome  = true
58+ 
59+ [testenv:py38-django32] 
60+ ignore_outcome  = true
61+ 
62+ [testenv:py39-django32] 
63+ ignore_outcome  = true
64+ 
65+ [testenv:py38-djangomain] 
66+ ignore_outcome  = true
67+ 
68+ [testenv:py39-djangomain] 
69+ ignore_outcome  = true
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments