Skip to content

Commit ee7cb21

Browse files
committed
Support testing against Python 3.13
1 parent 12bbd16 commit ee7cb21

File tree

2 files changed

+14
-12
lines changed

2 files changed

+14
-12
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,12 +44,12 @@ jobs:
4444
fail-fast: false
4545
matrix:
4646
platform: [ "macos", "ubuntu", "windows" ]
47-
python-version: [ "3.8", "3.9", "3.10", "3.11", "3.12" ]
47+
python-version: [ "3.8", "3.9", "3.10", "3.11", "3.12", "3.13-dev" ]
4848
include:
4949
- experimental: false
5050
# Allow dev Python to fail without failing entire job
51-
#- python-version: "3.13-dev"
52-
# experimental: true
51+
- python-version: "3.13-dev"
52+
experimental: true
5353
# Run tests against the latest Windows Store Python
5454
- platform: "windows"
5555
python-version: "winstore3.12"

tox.ini

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
11
[tox]
2-
envlist = towncrier-check,docs-lint,pre-commit,py{38,39,310,311,312},coverage
2+
envlist = towncrier-check,docs-lint,pre-commit,py{38,39,310,311,312,313},coverage
33
labels =
4-
test = py{38,39,310,311,312},coverage
4+
test = py{38,39,310,311,312,313},coverage
55
test38 = py38,coverage38
66
test39 = py39,coverage39
77
test310 = py310,coverage310
88
test311 = py311,coverage311
99
test312 = py312,coverage312
10-
test-fast = py{38,39,310,311,312}-fast
11-
test-platform = py{38,39,310,311,312},coverage-platform
12-
ci = towncrier-check,docs-lint,pre-commit,py{38,39,310,311,312},coverage-platform
10+
test313 = py313,coverage313
11+
test-fast = py{38,39,310,311,312,313}-fast
12+
test-platform = py{38,39,310,311,312,313},coverage-platform
13+
ci = towncrier-check,docs-lint,pre-commit,py{38,39,310,311,312,313},coverage-platform
1314
skip_missing_interpreters = True
1415

1516
[testenv:pre-commit]
@@ -18,7 +19,7 @@ deps = build
1819
commands_pre = python -m install_requirement --extra dev --project-root "{tox_root}" pre-commit
1920
commands = pre-commit run --all-files --show-diff-on-failure --color=always
2021

21-
[testenv:py{,38,39,310,311,312}{,-fast}]
22+
[testenv:py{,38,39,310,311,312,313}{,-fast}]
2223
package = wheel
2324
wheel_build_env = .pkg
2425
depends: pre-commit
@@ -31,18 +32,19 @@ commands =
3132
!fast : python -X warn_default_encoding -m coverage run -m pytest {posargs:-vv --color yes}
3233
fast : python -m pytest {posargs:-vv --color yes -n auto}
3334

34-
[testenv:coverage{,38,39,310,311,312}{,-ci}{,-platform,-platform-linux,-platform-macos,-platform-windows,-project}{,-keep}{,-html}]
35-
depends = py{,38,39,310,311,312}
35+
[testenv:coverage{,38,39,310,311,312,313}{,-ci}{,-platform,-platform-linux,-platform-macos,-platform-windows,-project}{,-keep}{,-html}]
36+
depends = py{,38,39,310,311,312,313}
3637
skip_install = True
3738
# by default, coverage should run on oldest supported Python for testing platform coverage.
3839
# however, coverage for a particular Python version should match the version used for pytest.
3940
base_python =
40-
coverage: py38,py39,py310,py311,py312
41+
coverage: py38,py39,py310,py311,py312,py313
4142
coverage38: py38
4243
coverage39: py39
4344
coverage310: py310
4445
coverage311: py311
4546
coverage312: py312
47+
coverage313: py313
4648
passenv = COVERAGE_FILE
4749
setenv =
4850
keep: COMBINE_FLAGS = --keep

0 commit comments

Comments
 (0)