Skip to content

Commit

Permalink
Add Python 3.13 to CI and supported Python versions. (#59)
Browse files Browse the repository at this point in the history
  • Loading branch information
felixfontein authored Oct 19, 2024
1 parent d561092 commit 90028d5
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 6 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/nox.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,19 +29,19 @@ jobs:
matrix:
include:
- session: test
python-versions: "3.7, 3.8, 3.9, 3.10, 3.11, 3.12"
other-args: "-p 3.7 3.8 3.9 3.10 3.11 3.12"
python-versions: "3.7, 3.8, 3.9, 3.10, 3.11, 3.12, 3.13"
other-args: "-p 3.7 3.8 3.9 3.10 3.11 3.12 3.13"
codecov: true
packages: ""

- session: lint
python-versions: "3.12"
python-versions: "3.13"
other-args: ""
codecov: false
packages: ""

- session: create_vectors
python-versions: "3.12"
python-versions: "3.13"
other-args: ""
codecov: false
packages: ""
Expand Down
2 changes: 2 additions & 0 deletions changelogs/fragments/python-3.13.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
minor_changes:
- Declare support for Python 3.13 (https://github.com/ansible-community/antsibull-docs-parser/pull/59).
4 changes: 2 additions & 2 deletions noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,12 @@ def install(session: nox.Session, *args, editable=False, **kwargs):
session.install(*args, "-U", **kwargs)


@nox.session(python=["3.6", "3.7", "3.8", "3.9", "3.10", "3.11", "3.12"])
@nox.session(python=["3.6", "3.7", "3.8", "3.9", "3.10", "3.11", "3.12", "3.13"])
def test(session: nox.Session):
install(session, ".[test, coverage]", editable=True)
covfile = Path(session.create_tmp(), ".coverage")
more_args = []
if session.python in ("3.11", "3.12"):
if session.python in {"3.11", "3.12", "3.13"}:
more_args.append("--error-for-skips")
session.run(
"pytest",
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ classifiers = [
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Typing :: Typed",
]

Expand Down

0 comments on commit 90028d5

Please sign in to comment.