16
16
17
17
services :
18
18
postgres :
19
- image : postgis/postgis:10-2.5
19
+ image : postgis/postgis:15-3.4-alpine
20
20
env :
21
21
POSTGRES_PASSWORD : postgres
22
22
POSTGRES_USER : postgres
@@ -29,97 +29,89 @@ jobs:
29
29
fail-fast : false
30
30
matrix :
31
31
env :
32
- - python : 3.6
33
- TOXENV : py36-django22-djangorestframework310
34
- - python : 3.7
35
- TOXENV : py37-django22-djangorestframework310
36
- - python : 3.8
37
- TOXENV : py38-django22-djangorestframework310
38
- - python : 3.9
39
- TOXENV : py39-django22-djangorestframework310
40
- - python : 3.6
41
- TOXENV : py36-django22-djangorestframework312
42
- - python : 3.7
43
- TOXENV : py37-django22-djangorestframework312
44
- - python : 3.8
45
- TOXENV : py38-django22-djangorestframework312
46
- - python : 3.9
47
- TOXENV : py39-django22-djangorestframework312
48
- - python : 3.6
49
- TOXENV : py36-django30-djangorestframework312
50
- - python : 3.7
51
- TOXENV : py37-django30-djangorestframework312
52
- - python : 3.8
53
- TOXENV : py38-django30-djangorestframework312
54
- - python : 3.9
55
- TOXENV : py39-django30-djangorestframework312
56
- - python : 3.6
57
- TOXENV : py36-django31-djangorestframework312
58
- - python : 3.7
59
- TOXENV : py37-django31-djangorestframework312
60
- - python : 3.8
61
- TOXENV : py38-django31-djangorestframework312
62
- - python : 3.9
63
- TOXENV : py39-django31-djangorestframework312
64
- - python : 3.7
65
- TOXENV : py37-django32-djangorestframework312
66
- - python : 3.8
32
+ - python : ' 3.8'
67
33
TOXENV : py38-django32-djangorestframework312
68
- - python : 3.9
34
+ - python : ' 3.8'
35
+ TOXENV : py38-django32-djangorestframework313
36
+ - python : ' 3.8'
37
+ TOXENV : py38-django32-djangorestframework314
38
+ - python : ' 3.8'
39
+ TOXENV : py38-django42-djangorestframework314
40
+ - python : ' 3.9'
69
41
TOXENV : py39-django32-djangorestframework312
70
- - python : 3.8
71
- TOXENV : py38-django40-djangorestframework313
72
- - python : 3.9
73
- TOXENV : py39-django40-djangorestframework313
42
+ - python : ' 3.9'
43
+ TOXENV : py39-django32-djangorestframework313
44
+ - python : ' 3.9'
45
+ TOXENV : py39-django32-djangorestframework314
46
+ - python : ' 3.9'
47
+ TOXENV : py39-django42-djangorestframework314
48
+ - python : ' 3.10'
49
+ TOXENV : py310-django32-djangorestframework312
50
+ - python : ' 3.10'
51
+ TOXENV : py310-django32-djangorestframework313
52
+ - python : ' 3.10'
53
+ TOXENV : py310-django32-djangorestframework314
54
+ - python : ' 3.10'
55
+ TOXENV : py310-django42-djangorestframework314
56
+ - python : ' 3.11'
57
+ TOXENV : py311-django42-djangorestframework314
58
+ - python : ' 3.11'
59
+ TOXENV : py311-django50-djangorestframework315
60
+ - python : ' 3.12'
61
+ TOXENV : py312-django50-djangorestframework315
62
+ - python : ' 3.11'
63
+ TOXENV : py311-django51-djangorestframework315
64
+ - python : ' 3.12'
65
+ TOXENV : py312-django51-djangorestframework315
74
66
steps :
75
- - uses : actions/checkout@v2
67
+ - uses : actions/checkout@v4
76
68
with :
77
69
ref : ${{ github.event.pull_request.head.sha }}
78
70
79
71
- name : Set up Python ${{ matrix.env.python }}
80
- uses : actions/setup-python@v2
72
+ uses : actions/setup-python@v5
81
73
with :
82
74
python-version : ${{ matrix.env.python }}
75
+ cache : ' pip'
76
+ cache-dependency-path : |
77
+ **/requirements*.txt
83
78
84
- - name : Install system packages
85
- run : |
86
- sudo apt-get update
87
- sudo apt-get install binutils libproj-dev gdal-bin -y
88
-
89
- - name : Install python dependencies
79
+ - name : Install Dependencies
80
+ id : deps
90
81
run : |
82
+ sudo apt -qq update
83
+ sudo apt -qq -y install binutils libproj-dev gdal-bin
91
84
pip install -U pip wheel setuptools
92
85
pip install -U -r requirements-test.txt
93
86
pip install tox docutils pygments twine
94
87
88
+ - name : QA checks
89
+ run : |
90
+ ./run-qa-checks
91
+
95
92
- name : Tests
93
+ if : ${{ !cancelled() && steps.deps.conclusion == 'success' }}
96
94
run : |
97
95
tox -e ${{ matrix.env.TOXENV }}
96
+ coverage combine
97
+ coverage xml
98
98
env :
99
99
POSTGRES_HOST : localhost
100
100
101
101
- name : Upload Coverage
102
- run : coveralls --service=github
103
- env :
104
- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
105
- COVERALLS_FLAG_NAME : |
106
- python-${{ matrix.env.env }}
107
- COVERALLS_PARALLEL : true
108
-
109
- - name : QA checks
110
- run : |
111
- pip install "importlib-metadata<5.0" # remove when flake8 is upgraded
112
- ./run-qa-checks
102
+ if : ${{ success() }}
103
+ uses : coverallsapp/github-action@v2
104
+ with :
105
+ parallel : true
106
+ format : cobertura
107
+ flag-name : python-${{ matrix.env.env }}
108
+ github-token : ${{ secrets.GITHUB_TOKEN }}
113
109
114
110
coveralls :
115
- name : Finish Coveralls
116
111
needs : build
117
112
runs-on : ubuntu-latest
118
- container : python:3-slim
119
113
steps :
120
- - name : Finished
121
- run : |
122
- pip3 install --upgrade coveralls
123
- coveralls --finish
124
- env :
125
- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
114
+ - name : Coveralls Finished
115
+ uses : coverallsapp/github-action@v2
116
+ with :
117
+ parallel-finished : true
0 commit comments