Skip to content

Commit 2991d7c

Browse files
committed
GitHub Actions: Add Python 3.12 to the testing
As discussed at torchbox#236 (review)
1 parent 5efd3a0 commit 2991d7c

File tree

3 files changed

+62
-63
lines changed

3 files changed

+62
-63
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ jobs:
1212
- run: pipx install "poetry>=1.1.12,<2"
1313
- uses: actions/setup-python@v5
1414
with:
15-
python-version: "3.11"
15+
python-version: "3.12"
1616
cache: 'poetry'
1717
- run: pip install tox
18-
- run: tox -e lint,py311-dj50
18+
- run: tox -e lint,py312-dj50
1919
test_compatibility:
2020
needs: test
2121
runs-on: ubuntu-latest
@@ -24,21 +24,18 @@ jobs:
2424
matrix:
2525
include:
2626
# Test with all supported Django versions, for all compatible Python versions.
27-
# See https://docs.djangoproject.com/en/4.0/faq/install/#what-python-version-can-i-use-with-django for the official matrix.
27+
# See https://docs.djangoproject.com/en/dev/faq/install/#what-python-version-can-i-use-with-django for the official matrix.
2828
# Additionally test on Django’s main branch with the most recent Python version.
2929
- python: "3.8"
3030
toxenv: py38-dj32,py38-dj41,py38-dj42
3131
- python: "3.9"
3232
toxenv: py39-dj32,py39-dj41,py39-dj42
3333
- python: "3.10"
34-
# Skip testing Django 4.0, already tested in previous workflow job.
3534
toxenv: py310-dj32,py310-dj41,py310-dj42,py310-djmain
3635
- python: "3.11"
3736
toxenv: py311-dj41,py311-dj42,py311-djmain
38-
# Tentative support for next Python pre-release.
39-
# When django supports the version, uncomment this
40-
# - python: "3.12"
41-
# toxenv: py312-dj41
37+
- python: "3.12"
38+
toxenv: py312-dj42,py312-djmain
4239
steps:
4340
- uses: actions/checkout@v4
4441
- run: pipx install "poetry>=1.1.12,<2"
@@ -68,7 +65,7 @@ jobs:
6865
run: npm ci --no-audit
6966
- run: npm run build
7067
- run: pipx install "poetry>=1.1.12,<2"
71-
- uses: actions/setup-python@v4
68+
- uses: actions/setup-python@v5
7269
with:
7370
python-version-file: pyproject.toml
7471
cache: 'poetry'

poetry.lock

Lines changed: 55 additions & 53 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ Markdown = "^3.1"
5050

5151
[tool.poetry.dev-dependencies]
5252
beautifulsoup4 = "^4.8"
53-
coverage = "^6.2"
53+
coverage = "^7.4"
5454
flake8 = {version = "^7.0", python = ">=3.8.1,<4.0"}
5555
isort = "^5.10.1"
5656
mkdocs = "^1.1.2"

0 commit comments

Comments
 (0)