summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorNatalia <124304+nessita@users.noreply.github.com>2025-08-27 09:15:16 -0300
committernessita <124304+nessita@users.noreply.github.com>2025-08-27 11:33:13 -0300
commit4f0776710688de6be4ee02440153345eabb16f17 (patch)
treef652e2d6e5b507246408c4009c6bec94d22547c4 /.github
parent1b0c4d5ea58dabe64e51131e8fc56c78647d0ebb (diff)
Added matrix with newer image versions to the "postgis" GitHub Action.
This work allows to test three types of postgis Docker images to cover a wider spectrum of geo libraries versions: * `latest` (recommended upstream): uses latest stable Debian packages. These versions are generally conservative, so they may lag behind. * `alpine`: build PostGIS from source on Alpine, and ship newer geospatial libs. * `master`: provides development versions, therefore coverage for what's coming. Future compatibility issues can be caught in advance. This split is important because each image differs significantly in GEOS/PROJ/GDAL versions, so testing all increases confidence in compatibility. More info at https://hub.docker.com/r/postgis/postgis/. For example, at the time of this branch: * latest stable in debian: * POSTGIS="3.5.2 dea6d0a" * GEOS="3.9.0-CAPI-1.16.2" * PROJ="7.2.1" * latest stable in alpine: * POSTGIS="3.5.3 0" * GEOS="3.13.1-CAPI-1.19.2" * PROJ="9.6.0 * latest development branch: * POSTGIS="3.6.0dev 3.6.0beta1-29-g7c8cfe07d" * GEOS="3.14.0beta2-CAPI-1.20.1" * PROJ="9.7.0"
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/postgis.yml10
1 files changed, 7 insertions, 3 deletions
diff --git a/.github/workflows/postgis.yml b/.github/workflows/postgis.yml
index fa418eb920..6b49fe81ee 100644
--- a/.github/workflows/postgis.yml
+++ b/.github/workflows/postgis.yml
@@ -14,13 +14,17 @@ permissions:
contents: read
jobs:
- postgis-latest:
+ postgis:
if: contains(github.event.pull_request.labels.*.name, 'geodjango')
runs-on: ubuntu-latest
- name: Latest PostGIS
+ strategy:
+ fail-fast: false
+ matrix:
+ postgis-version: [latest, "17-3.5-alpine", "17-master"]
+ name: PostGIS ${{ matrix.postgis-version }}
services:
postgres:
- image: postgis/postgis:latest
+ image: postgis/postgis:${{ matrix.postgis-version }}
env:
POSTGRES_DB: geodjango
POSTGRES_USER: user