@@ -22,12 +22,12 @@ jobs:
22
22
include :
23
23
- debian-version : " 11"
24
24
python-version : " 3.9"
25
- postgres-version : " 11"
26
- postgis-version : " 2.5"
27
- - debian-version : " 12"
28
- python-version : " 3.11"
29
25
postgres-version : " 13"
30
26
postgis-version : " 3.2"
27
+ - debian-version : " 12"
28
+ python-version : " 3.11"
29
+ postgres-version : " 15"
30
+ postgis-version : " 3.3"
31
31
32
32
name : Debian ${{ matrix.debian-version}} - SQLAlchemy ${{ matrix.sqlalchemy-version }}
33
33
50
50
--health-retries 5
51
51
52
52
steps :
53
- - name : Add postgis_raster database extension
54
- if : ${{ matrix.postgis-version >= 3 }}
55
- run : |
56
- psql -h localhost -U geouser -d refgeo -tc 'CREATE EXTENSION "postgis_raster";'
57
- env :
58
- PGPASSWORD : geopasswd
59
53
- name : Add database extensions
60
54
run : |
55
+ psql -h localhost -U geouser -d refgeo -tc 'CREATE EXTENSION "postgis_raster";'
61
56
psql -h localhost -U geouser -d refgeo -tc 'CREATE EXTENSION "hstore";'
62
57
psql -h localhost -U geouser -d refgeo -tc 'CREATE EXTENSION "uuid-ossp";'
63
58
psql -h localhost -U geouser -d refgeo -tc 'CREATE EXTENSION "pg_trgm";'
@@ -77,24 +72,12 @@ jobs:
77
72
sudo apt update
78
73
sudo apt install -y libgdal-dev
79
74
- name : Install dependencies
80
- if : ${{ matrix.sqlalchemy-version == '1.3' }}
81
- run : |
82
- python -m pip install --upgrade pip
83
- python -m pip install \
84
- -e .[tests] \
85
- -e dependencies/Utils-Flask-SQLAlchemy \
86
- -e dependencies/Utils-Flask-SQLAlchemy-Geo \
87
- 'sqlalchemy>=1.3,<1.4' \
88
- 'flask-sqlalchemy<3'
89
- - name : Install dependencies
90
- if : ${{ matrix.sqlalchemy-version == '1.4' }}
91
75
run : |
92
76
python -m pip install --upgrade pip
93
77
python -m pip install \
94
78
-e .[tests] \
95
79
-e dependencies/Utils-Flask-SQLAlchemy \
96
- -e dependencies/Utils-Flask-SQLAlchemy-Geo \
97
- 'sqlalchemy>=1.4,<2'
80
+ -e dependencies/Utils-Flask-SQLAlchemy-Geo
98
81
- name : Show database branches and dependencies
99
82
run : |
100
83
flask db status --dependencies
110
93
run : |
111
94
pytest -v --cov --cov-report xml
112
95
- name : Upload coverage to Codecov
113
- if : ${{ matrix.debian-version == '11 ' && matrix.sqlalchemy-version == '1.4' }}
96
+ if : ${{ matrix.debian-version == '12 ' && matrix.sqlalchemy-version == '1.4' }}
114
97
uses : codecov/codecov-action@v3
115
98
with :
116
99
flags : pytest
0 commit comments