Skip to content

Commit

Permalink
Tidy up the test matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
zerolab committed Nov 7, 2023
1 parent a2d916f commit 55ce6ea
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
13 changes: 6 additions & 7 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
needs: lint
strategy:
matrix:
python: ['3.8', '3.9', '3.10', '3.11']
python: ['3.8', '3.9', '3.10', '3.11', '3.12']
database: ['sqlite']

steps:
Expand All @@ -54,13 +54,15 @@ jobs:
python -m pip install tox tox-gh-actions
- name: Test with tox
run: tox -- -v1
env:
DATABASE: sqlite

test-postgres:
runs-on: ubuntu-latest
needs: lint
strategy:
matrix:
python: ['3.8', '3.9', '3.10', '3.11']
python: ['3.8', '3.9', '3.10', '3.11', '3.12']
database: ['postgres']

services:
Expand Down Expand Up @@ -96,11 +98,8 @@ jobs:
id: test-with-tox
run: tox -- -v1
env:
DB_NAME: postgres
DB_USER: postgres
DB_PASSWORD: postgres
DB_HOST: localhost
DB_PORT: 5432
DATABASE_URL: postgres://postgres:postgres@localhost:5432/postgres
DATABASE: postgres

coverage:
runs-on: ubuntu-latest
Expand Down
9 changes: 5 additions & 4 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,16 @@ usedevelop = True

envlist =
python{3.8,3.9,3.10}-django{3.2,4.1}-wagtail{4.1}-{sqlite,postgres12}
python{3.11}-django{4.1}-wagtail{4.1,5.0,5.1}-{sqlite,postgres15}
python{3.8,3.9,3.10,3.11}-django{4.2}-wagtail{5.0,5.1}-{sqlite,postgres15}
python{3.8,3.9,3.10,3.11}-django{4.2}-wagtail{5.1,5.2}-{sqlite,postgres15}
python{3.12}-django{4.2}-wagtail{5.2}-{sqlite,postgres15}

[gh-actions]
python =
3.8: python3.8
3.9: python3.9
3.10: python3.10
3.11: python3.11
3.12: python3.12

[gh-actions:env]
DATABASE =
Expand All @@ -34,11 +35,11 @@ deps =
django3.2: Django>=3.2,<3.3
django4.1: Django>=4.1,<4.2
django4.2: Django>=4.2,<5.0
djangomain: git+https://github.com/django/django.git@main#egg=Django

wagtail4.1: wagtail>=4.1,<4.2
wagtail5.0: wagtail>=5.0,<5.1
wagtail5.1: wagtail>=5.1,<5.2
wagtail5.2: wagtail>=5.2,<5.3
wagtailmain: git+https://github.com/wagtail/wagtail.git

# Pinned to work around UTC connection error
Expand All @@ -50,7 +51,7 @@ setenv =


[testenv:interactive]
basepython = python3.9
basepython = python3.11

commands_pre =
python {toxinidir}/testmanage.py makemigrations
Expand Down

0 comments on commit 55ce6ea

Please sign in to comment.