Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update tox matrix to include Wagtail 6.3 #30

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:

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

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,14 @@ env:
PIP_DISABLE_PIP_VERSION_CHECK: "1"
PIP_NO_PYTHON_VERSION_WARNING: "1"
# Keep in sync with .pre-commit-config.yaml/default_language_version/python.
PYTHON_LATEST: "3.12"
PYTHON_LATEST: "3.13"

jobs:
tests:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.9', '3.10', '3.11', '3.12']
python-version: ['3.9', '3.10', '3.11', '3.12', '3.13']

steps:
- name: Harden Runner
Expand Down
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
default_language_version:
# Keep in sync with test.yml/PYTHON_LATEST
python: python3.12
python: python3.13

ci:
autofix_prs: false
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ classifiers = [
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
]

dynamic = ["version"]
Expand Down
17 changes: 9 additions & 8 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{39,310,311}-django4.2-wagtail{5.2,6.1,6.2}
python{310,311,312}-django5.0-wagtail{5.2,6.1,6.2}
python312-django5.1-wagtail{6.2,main}
python{39,310,311}-django4.2-wagtail{5.2,6.2,6.3}
python{310,311,312}-django5.0-wagtail{5.2,6.2,6.3}
python{312,313}-django5.1-wagtail{6.3,main}

[gh-actions]
python =
3.9: python39
3.10: python310
3.11: python311
3.12: python312
3.13: python313

[testenv]
package = wheel
Expand All @@ -27,8 +28,8 @@ setenv =
PYTHONPATH = {toxinidir}
DJANGO_SETTINGS_MODULE = tests.settings
PYTHONDEVMODE = 1
# use the Python 3.12+ sys.monitoring
python3.12: COVERAGE_CORE=sysmon
# use the Python 3.13+ sys.monitoring
python3.13: COVERAGE_CORE=sysmon

deps =
coverage>=7.0,<8.0
Expand All @@ -38,8 +39,8 @@ deps =
django5.1: Django>=5.1,<5.2

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

install_command = python -Im pip install -U {opts} {packages}

Expand All @@ -50,7 +51,7 @@ commands =
python -m coverage run {toxinidir}/tests/manage.py test {posargs: -v 2}

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

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

deps =
Expand Down
Loading