1
0
mirror of https://github.com/django/django.git synced 2025-09-10 11:09:12 +00:00

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"
This commit is contained in:
Natalia 2025-08-27 09:15:16 -03:00 committed by nessita
parent 1b0c4d5ea5
commit 4f07767106

View File

@ -14,13 +14,17 @@ permissions:
contents: read contents: read
jobs: jobs:
postgis-latest: postgis:
if: contains(github.event.pull_request.labels.*.name, 'geodjango') if: contains(github.event.pull_request.labels.*.name, 'geodjango')
runs-on: ubuntu-latest 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: services:
postgres: postgres:
image: postgis/postgis:latest image: postgis/postgis:${{ matrix.postgis-version }}
env: env:
POSTGRES_DB: geodjango POSTGRES_DB: geodjango
POSTGRES_USER: user POSTGRES_USER: user