0
0
mirror of https://github.com/wagtail/wagtail.git synced 2024-11-21 18:09:02 +01:00

Use PostgreSQL 11 when testing against Django main (#8489)

Django dropped support for PostgreSQL 10 as of Django 4.1
This commit is contained in:
sag᠎e 2022-05-05 16:47:38 +07:00 committed by GitHub
parent e4d563e492
commit bb2c826cbc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -82,10 +82,13 @@ jobs:
- python: '3.10'
django: 'git+https://github.com/django/django.git@main#egg=Django'
experimental: true
postgres: 'postgres:11'
services:
postgres:
image: postgres:10.8
image: ${{ matrix.postgres || 'postgres:10.8' }}
env:
POSTGRES_PASSWORD: postgres
ports:
- 5432:5432
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
@ -110,7 +113,7 @@ jobs:
DATABASE_ENGINE: django.db.backends.postgresql
DATABASE_HOST: localhost
DATABASE_USER: postgres
DATABASE_PASS: postgres
DATABASE_PASSWORD: postgres
USE_EMAIL_USER_MODEL: ${{ matrix.emailuser }}
DISABLE_TIMEZONE: ${{ matrix.notz }}
@ -288,7 +291,7 @@ jobs:
DATABASE_ENGINE: django.db.backends.postgresql
DATABASE_HOST: localhost
DATABASE_USER: postgres
DATABASE_PASS: postgres
DATABASE_PASSWORD: postgres
USE_EMAIL_USER_MODEL: ${{ matrix.emailuser }}
test-postgres-elasticsearch7:
@ -338,5 +341,5 @@ jobs:
DATABASE_ENGINE: django.db.backends.postgresql
DATABASE_HOST: localhost
DATABASE_USER: postgres
DATABASE_PASS: postgres
DATABASE_PASSWORD: postgres
USE_EMAIL_USER_MODEL: ${{ matrix.emailuser }}