-
Notifications
You must be signed in to change notification settings - Fork 30
59 lines (59 loc) · 1.6 KB
/
ci_psycopg3_gis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
name: CI-psycopg3-gis
'on':
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build:
env:
POSTGRES_USER: postgres
PGPASSWORD: postgres
runs-on: '${{ matrix.os }}'
strategy:
matrix:
include:
- os: ubuntu-latest
python-version: '3.8'
django-version: '4.2.9'
- os: ubuntu-latest
python-version: '3.9'
django-version: '4.2.9'
- os: ubuntu-latest
python-version: '3.10'
django-version: '4.2.9'
- os: ubuntu-latest
python-version: '3.11'
django-version: '4.2.9'
- os: ubuntu-latest
python-version: '3.12'
django-version: '4.2.9'
services:
postgres:
image: postgis/postgis
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 5432:5432
steps:
- name: 'Set up Python ${{ matrix.python-version }}'
uses: actions/setup-python@v5
with:
python-version: '${{ matrix.python-version }}'
- uses: actions/checkout@v4
- run: sudo apt-get update
- run: sudo apt-get install gdal-bin libgdal-dev
- run: pip install django==${{ matrix.django-version}}
- run: pip install psycopg[binary]
- run: pip install gevent
- run: pip install gdal==3.4.1
- run: pip install .
- run: python runtests_psycopg3_gis.py