Skip to content

Commit

Permalink
Update testing for Wagtail 6.3 (#67)
Browse files Browse the repository at this point in the history
* Add Wagtail 6.3, Django 5.1, Python 3.13 to the test matrix
* Drop Python 3.8
  • Loading branch information
nickmoreton authored Nov 22, 2024
1 parent a0f01c6 commit be3276d
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:

- uses: actions/setup-python@v5
with:
python-version: '3.11'
python-version: '3.13'
cache: "pip"
cache-dependency-path: "**/pyproject.toml"

Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ env:
TOX_TESTENV_PASSENV: FORCE_COLOR
PIP_DISABLE_PIP_VERSION_CHECK: "1"
PIP_NO_PYTHON_VERSION_WARNING: "1"
PYTHON_LATEST: "3.12"
PYTHON_LATEST: "3.13"

jobs:
tests:
Expand All @@ -27,7 +27,7 @@ jobs:

strategy:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]

steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -67,6 +67,7 @@ jobs:
name: coverage-data-${{ matrix.python-version }}
path: .coverage.*
if-no-files-found: ignore
include-hidden-files: true
retention-days: 1

coverage:
Expand Down
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

- Add tox testing for Django 5.1 and Wagtail 6.2 + 6.3
- Drop testing for Python 3.8

## [0.8] - 2024-02-23

### Changed
Expand Down
5 changes: 3 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,15 @@ classifiers = [
"License :: OSI Approved :: BSD License",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Framework :: Django",
"Framework :: Django :: 4.2",
"Framework :: Django :: 5.0",
"Framework :: Django :: 5.1",
"Framework :: Wagtail",
"Framework :: Wagtail :: 5",
"Framework :: Wagtail :: 6",
Expand All @@ -29,7 +30,7 @@ classifiers = [
]

dynamic = ["version"]
requires-python = ">=3.8"
requires-python = ">=3.9"
dependencies = ["Wagtail>=5.2"]

[project.optional-dependencies]
Expand Down
17 changes: 10 additions & 7 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,17 @@
min_version = 4.11

env_list =
python{3.8,3.9,3.10,3.11}-django4.2-wagtail{5.2,6.0,6.1}
python{3.10,3.11,3.12}-django5.0-wagtail{5.2,6.0,6.1}
python{3.9,3.10,3.11}-django4.2-wagtail{5.2,6.2,6.3}
python{3.10,3.11,3.12}-django5.0-wagtail{5.2,6.2,6.3}
python{3.12,3.13}-django5.1-wagtail6.3

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

[testenv]
package = wheel
Expand All @@ -33,16 +34,18 @@ extras = testing
deps =
django4.2: Django>=4.2, <5.0
django5.0: Django>=5.0, <5.1
django5.1: Django>=5.1, <5.2

wagtail5.2: wagtail>=5.2, <6.0
wagtail6.0: wagtail>=6.0, <6.1
wagtail6.2: wagtail>=6.2, <6.3
wagtail6.3: wagtail>=6.3, <6.4

install_command = python -Im pip install -U {opts} {packages}
commands =
python -Im coverage run runtests.py test --deprecation all {posargs: -v 2}

[testenv:coverage-report]
base_python = python3.12
base_python = python3.13
package = skip
deps =
coverage>=7.0,<8.0
Expand All @@ -52,14 +55,14 @@ commands =

[testenv:wagtailmain]
description = Test with latest Wagtail main branch
base_python = python3.12
base_python = python3.13
deps =
wagtailmain: git+https://github.com/wagtail/wagtail.git@main#egg=Wagtail

[testenv:interactive]
package = editable
description = An interactive environment for local testing purposes
base_python = python3.12
base_python = python3.13

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

0 comments on commit be3276d

Please sign in to comment.