Skip to content

Commit

Permalink
Tidy up tox config
Browse files Browse the repository at this point in the history
  • Loading branch information
zerolab committed Dec 6, 2024
1 parent 8cb0445 commit 5c55a85
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 9 deletions.
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.11'
python-version: '3.13'
cache: "pip"
cache-dependency-path: "**/pyproject.toml"

Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ 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.11"
PYTHON_LATEST: "3.13"

jobs:
tests:
Expand All @@ -43,6 +43,8 @@ jobs:
pypi.org:443
api.github.com:443
- uses: actions/checkout@v4
with:
persist-credentials: false
- name: 🐍 Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,10 @@ dependencies = [

[project.optional-dependencies]
testing = [
"coverage>=7.4.0",
"coverage>=7.6.0",
]
linting = [
"pre-commit>=3.6.0",
"pre-commit>=5.0.0",
]

[project.urls]
Expand Down
10 changes: 5 additions & 5 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[tox]
min_version = 4.11
min_version = 4.22

env_list =
py{39,310,311}-dj42-wagtail{52}
Expand Down Expand Up @@ -51,7 +51,7 @@ commands =
python -Im coverage run runtests.py {posargs: -v 2}

[testenv:coverage-report]
base_python = python3.11
base_python = python3.12
package = skip
deps =
coverage>=7.0,<8.0
Expand All @@ -61,17 +61,17 @@ 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.11
base_python = python3.13

deps =
wagtail>=5.2
wagtail>=6.3

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

0 comments on commit 5c55a85

Please sign in to comment.