Skip to content

Commit f8451e7

Browse files
committed
CI: run some builds with psycopg3
1 parent 32e560f commit f8451e7

File tree

2 files changed

+24
-1
lines changed

2 files changed

+24
-1
lines changed

.github/actions/ubuntu-prerequisites/action.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,15 @@ runs:
3030
postgresql-${POSTGRESQL_VERSION}-postgis-${POSTGIS_VERSION} \
3131
postgresql-${POSTGRESQL_VERSION}-postgis-${POSTGIS_VERSION}-scripts \
3232
postgresql-client postgresql-contrib-${POSTGRESQL_VERSION} \
33-
python3-psycopg2 \
3433
python3-setuptools \
3534
zlib1g-dev
3635
pip3 install behave osmium
3736
if [ "$CC" = clang-8 ]; then sudo apt-get install -yq --no-install-suggests --no-install-recommends clang-8; fi
37+
if [ "$PSYCOPG" = "2"]; then
38+
sudo apt-get install -yq --no-install-suggests --no-install-recommends python3-psycopg2
39+
else
40+
pip3 install psycopg
41+
fi
3842
shell: bash
3943

4044
- name: Install Lua

.github/workflows/ci.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ jobs:
5858
POSTGRESQL_VERSION: 9.6
5959
POSTGIS_VERSION: 2.5
6060
BUILD_TYPE: Release
61+
PSYCOPG: 2
6162

6263
steps:
6364
- uses: actions/checkout@v3
@@ -75,6 +76,7 @@ jobs:
7576
POSTGRESQL_VERSION: 9.6
7677
POSTGIS_VERSION: 2.5
7778
BUILD_TYPE: Release
79+
PSYCOPG: 2
7880

7981
steps:
8082
- uses: actions/checkout@v3
@@ -93,6 +95,7 @@ jobs:
9395
POSTGRESQL_VERSION: 10
9496
POSTGIS_VERSION: 3
9597
BUILD_TYPE: Debug
98+
PSYCOPG: 2
9699

97100
steps:
98101
- uses: actions/checkout@v3
@@ -111,6 +114,7 @@ jobs:
111114
POSTGRESQL_VERSION: 11
112115
POSTGIS_VERSION: 2.5
113116
BUILD_TYPE: Debug
117+
PSYCOPG: 2
114118

115119
steps:
116120
- uses: actions/checkout@v3
@@ -128,6 +132,7 @@ jobs:
128132
POSTGRESQL_VERSION: 12
129133
POSTGIS_VERSION: 2.5
130134
BUILD_TYPE: Debug
135+
PSYCOPG: 2
131136

132137
steps:
133138
- uses: actions/checkout@v3
@@ -146,6 +151,7 @@ jobs:
146151
POSTGRESQL_VERSION: 13
147152
POSTGIS_VERSION: 3
148153
BUILD_TYPE: Debug
154+
PSYCOPG: 2
149155

150156
steps:
151157
- uses: actions/checkout@v3
@@ -164,6 +170,7 @@ jobs:
164170
POSTGIS_VERSION: 3
165171
USE_PROJ_LIB: 6
166172
BUILD_TYPE: Debug
173+
PSYCOPG: 2
167174

168175
steps:
169176
- uses: actions/checkout@v3
@@ -182,6 +189,7 @@ jobs:
182189
POSTGIS_VERSION: 3
183190
USE_PROJ_LIB: off
184191
BUILD_TYPE: Debug
192+
PSYCOPG: 2
185193

186194
steps:
187195
- uses: actions/checkout@v3
@@ -200,6 +208,7 @@ jobs:
200208
POSTGIS_VERSION: 3
201209
USE_PROJ_LIB: 6
202210
BUILD_TYPE: Debug
211+
PSYCOPG: 2
203212

204213
steps:
205214
- uses: actions/checkout@v3
@@ -217,6 +226,7 @@ jobs:
217226
POSTGRESQL_VERSION: 13
218227
POSTGIS_VERSION: 2.5
219228
BUILD_TYPE: Release
229+
PSYCOPG: 2
220230

221231
steps:
222232
- uses: actions/checkout@v3
@@ -232,6 +242,7 @@ jobs:
232242
POSTGRESQL_VERSION: 13
233243
POSTGIS_VERSION: 2.5
234244
BUILD_TYPE: Release
245+
PSYCOPG: 2
235246

236247
steps:
237248
- uses: actions/checkout@v3
@@ -249,6 +260,7 @@ jobs:
249260
POSTGRESQL_VERSION: 14
250261
POSTGIS_VERSION: 3
251262
BUILD_TYPE: Debug
263+
PSYCOPG: 2
252264

253265
steps:
254266
- uses: actions/checkout@v3
@@ -267,6 +279,7 @@ jobs:
267279
POSTGIS_VERSION: 3
268280
USE_PROJ_LIB: 6
269281
BUILD_TYPE: Debug
282+
PSYCOPG: 2
270283

271284
steps:
272285
- uses: actions/checkout@v3
@@ -285,6 +298,7 @@ jobs:
285298
POSTGIS_VERSION: 3
286299
USE_PROJ_LIB: off
287300
BUILD_TYPE: Debug
301+
PSYCOPG: 2
288302

289303
steps:
290304
- uses: actions/checkout@v3
@@ -303,6 +317,7 @@ jobs:
303317
POSTGIS_VERSION: 3
304318
USE_PROJ_LIB: 6
305319
BUILD_TYPE: Debug
320+
PSYCOPG: 2
306321

307322
steps:
308323
- uses: actions/checkout@v3
@@ -321,6 +336,7 @@ jobs:
321336
POSTGRESQL_VERSION: 14
322337
POSTGIS_VERSION: 3
323338
BUILD_TYPE: Release
339+
PSYCOPG: 2
324340

325341
steps:
326342
- uses: actions/checkout@v3
@@ -337,6 +353,7 @@ jobs:
337353
POSTGRESQL_VERSION: 14
338354
POSTGIS_VERSION: 3
339355
BUILD_TYPE: Release
356+
PSYCOPG: 2
340357

341358
steps:
342359
- uses: actions/checkout@v3
@@ -355,6 +372,7 @@ jobs:
355372
POSTGIS_VERSION: 3
356373
CPP_VERSION: 20
357374
BUILD_TYPE: Debug
375+
PSYCOPG: 3
358376

359377
steps:
360378
- uses: actions/checkout@v3
@@ -373,6 +391,7 @@ jobs:
373391
POSTGIS_VERSION: 3
374392
CPP_VERSION: 20
375393
BUILD_TYPE: Debug
394+
PSYCOPG: 3
376395

377396
steps:
378397
- uses: actions/checkout@v3

0 commit comments

Comments
 (0)