Skip to content

Commit 6a133f7

Browse files
committed
Add 3.13 support
1 parent 9c14295 commit 6a133f7

3 files changed

Lines changed: 10 additions & 4 deletions

File tree

.github/actions/setup/action.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ runs:
1313
uses: actions/setup-python@v5
1414
with:
1515
python-version: ${{ inputs.python }}
16+
allow-prereleases: true
1617
cache: 'pip'
1718
cache-dependency-path: |
1819
requirements/*.txt'

.github/workflows/ci.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,22 +9,26 @@ on:
99
jobs:
1010
lint:
1111
runs-on: ubuntu-latest
12+
strategy:
13+
fail-fast: false
14+
matrix:
15+
python: ["3.12", "3.13"]
1216
steps:
1317
- uses: actions/checkout@v4
1418
- uses: ./.github/actions/setup
1519
with:
16-
python: "3.12"
20+
python: ${{ matrix.python }}
1721
- name: Run linters
1822
# Temporarily disabled so I get CI up and running and I can fix the new
1923
# lint errors separately.
2024
run: |
21-
nox -ts --python=3.12 --tags lint
25+
nox -ts --python=${{ matrix.python }} --tags lint
2226
check:
2327
runs-on: ubuntu-latest
2428
strategy:
2529
fail-fast: false
2630
matrix:
27-
python: ["3.9", "3.10", "3.11", "3.12", "pypy3.9", "pypy3.10"]
31+
python: ["3.9", "3.10", "3.11", "3.12", "pypy3.9", "pypy3.10", "3.13"]
2832
steps:
2933
- uses: actions/checkout@v4
3034
- uses: ./.github/actions/setup

noxfile.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
"3.10",
1515
"3.11",
1616
"3.12",
17+
"3.13",
1718
"pypy3.9",
1819
"pypy3.10",
1920
)
@@ -63,7 +64,7 @@ def check_imports(session: nox.Session) -> None:
6364
session.run("isort", *(session.posargs or DEFAULT_LINT_TARGETS), "--check")
6465

6566

66-
@nox.session(python=DEFAULT_PYTHON_VERSION, tags=["lint", "check"])
67+
@nox.session(python=ALL_PYTHON_VERSIONS, tags=["lint", "check"])
6768
def lint(session: nox.Session) -> None:
6869
"""
6970
Run the ruff linter

0 commit comments

Comments
 (0)