17
17
- ' .github/workflows/ci.yml'
18
18
pull_request :
19
19
env :
20
- LATEST_PY_VERSION : ' 3.10 '
20
+ LATEST_PY_VERSION : ' 3.12 '
21
21
22
22
jobs :
23
23
tests :
24
- runs-on : ubuntu-20.04
24
+ runs-on : ubuntu-latest
25
25
strategy :
26
26
matrix :
27
- python-version : ['3.8', '3.9', '3.10', '3.11']
27
+ python-version : ['3.8', '3.9', '3.10', '3.11', '3.12' ]
28
28
29
29
steps :
30
- - uses : actions/checkout@v3
30
+ - uses : actions/checkout@v4
31
31
- name : Set up Python ${{ matrix.python-version }}
32
- uses : actions/setup-python@v4
32
+ uses : actions/setup-python@v5
33
33
with :
34
34
python-version : ${{ matrix.python-version }}
35
35
36
36
- name : install lib postgres
37
- run : |
38
- sudo apt update
39
- wget -q https://www.postgresql.org/media/keys/ACCC4CF8.asc -O- | sudo apt-key add -
40
- echo "deb [arch=amd64] http://apt.postgresql.org/pub/repos/apt/ focal-pgdg main" | sudo tee /etc/apt/sources.list.d/postgresql.list
41
- sudo apt update
42
- sudo apt-get install --yes libpq-dev postgis postgresql-14-postgis-3
37
+ uses : nyurik/action-setup-postgis@v1
43
38
44
39
- name : Install dependencies
45
40
run : |
@@ -66,21 +61,16 @@ jobs:
66
61
67
62
benchmark :
68
63
needs : [tests]
69
- runs-on : ubuntu-20.04
64
+ runs-on : ubuntu-latest
70
65
steps :
71
- - uses : actions/checkout@v3
66
+ - uses : actions/checkout@v4
72
67
- name : Set up Python
73
- uses : actions/setup-python@v4
68
+ uses : actions/setup-python@v5
74
69
with :
75
70
python-version : ${{ env.LATEST_PY_VERSION }}
76
71
77
72
- name : install lib postgres
78
- run : |
79
- sudo apt update
80
- wget -q https://www.postgresql.org/media/keys/ACCC4CF8.asc -O- | sudo apt-key add -
81
- echo "deb [arch=amd64] http://apt.postgresql.org/pub/repos/apt/ focal-pgdg main" | sudo tee /etc/apt/sources.list.d/postgresql.list
82
- sudo apt update
83
- sudo apt-get install --yes libpq-dev postgis postgresql-14-postgis-3
73
+ uses : nyurik/action-setup-postgis@v1
84
74
85
75
- name : Install dependencies
86
76
run : |
@@ -110,9 +100,9 @@ jobs:
110
100
runs-on : ubuntu-latest
111
101
if : contains(github.ref, 'tags') && github.event_name == 'push'
112
102
steps :
113
- - uses : actions/checkout@v3
103
+ - uses : actions/checkout@v4
114
104
- name : Set up Python
115
- uses : actions/setup-python@v4
105
+ uses : actions/setup-python@v5
116
106
with :
117
107
python-version : ${{ env.LATEST_PY_VERSION }}
118
108
@@ -152,7 +142,7 @@ jobs:
152
142
153
143
steps :
154
144
- name : Checkout
155
- uses : actions/checkout@v3
145
+ uses : actions/checkout@v4
156
146
157
147
- name : Set up QEMU
158
148
uses : docker/setup-qemu-action@v1
0 commit comments