From 89b245d22d8ae8b919457e8950aad3cc3a06c657 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Edgar=20Ram=C3=ADrez=20Mondrag=C3=B3n?= <16805946+edgarrmondragon@users.noreply.github.com> Date: Wed, 18 Sep 2024 00:31:22 -0600 Subject: [PATCH] Test with Python 3.13 (#1227) --- .github/workflows/release.yml | 2 +- .github/workflows/tests.yml | 17 ++++++++++------- noxfile.py | 9 ++++++++- 3 files changed, 19 insertions(+), 9 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 2ee61fdf..c5240d23 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -19,7 +19,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v4.6.1 with: - python-version: "3.10" + python-version: "3.x" - name: Upgrade pip run: | diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index e90a9493..184a64cd 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -12,22 +12,24 @@ jobs: fail-fast: false matrix: include: - - { python: "3.11", os: "ubuntu-latest", session: "pre-commit" } - - { python: "3.11", os: "ubuntu-latest", session: "safety" } + - { python: "3.12", os: "ubuntu-latest", session: "pre-commit" } + - { python: "3.12", os: "ubuntu-latest", session: "safety" } + - { python: "3.13", os: "ubuntu-latest", session: "mypy" } - { python: "3.12", os: "ubuntu-latest", session: "mypy" } - { python: "3.11", os: "ubuntu-latest", session: "mypy" } - { python: "3.10", os: "ubuntu-latest", session: "mypy" } - { python: "3.9", os: "ubuntu-latest", session: "mypy" } - { python: "3.8", os: "ubuntu-latest", session: "mypy" } + - { python: "3.13", os: "ubuntu-latest", session: "tests" } - { python: "3.12", os: "ubuntu-latest", session: "tests" } - { python: "3.11", os: "ubuntu-latest", session: "tests" } - { python: "3.10", os: "ubuntu-latest", session: "tests" } - { python: "3.9", os: "ubuntu-latest", session: "tests" } - { python: "3.8", os: "ubuntu-latest", session: "tests" } - - { python: "3.11", os: "windows-latest", session: "tests" } - - { python: "3.11", os: "macos-latest", session: "tests" } - - { python: "3.11", os: "ubuntu-latest", session: "xdoctest" } - - { python: "3.11", os: "ubuntu-latest", session: "docs-build" } + - { python: "3.12", os: "windows-latest", session: "tests" } + - { python: "3.12", os: "macos-latest", session: "tests" } + - { python: "3.12", os: "ubuntu-latest", session: "xdoctest" } + - { python: "3.12", os: "ubuntu-latest", session: "docs-build" } env: NOXSESSION: ${{ matrix.session }} @@ -42,6 +44,7 @@ jobs: uses: actions/setup-python@v4.6.1 with: python-version: ${{ matrix.python }} + allow-prereleases: true - name: Upgrade pip run: | @@ -123,7 +126,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v4.6.1 with: - python-version: "3.11" + python-version: "3.x" - name: Upgrade pip run: | diff --git a/noxfile.py b/noxfile.py index 1cee2097..c4358ca1 100644 --- a/noxfile.py +++ b/noxfile.py @@ -15,7 +15,14 @@ package = "nox_poetry" -python_versions = ["3.11", "3.10", "3.9", "3.8", "3.12"] +python_versions = [ + "3.12", + "3.11", + "3.10", + "3.9", + "3.8", + "3.13", +] nox.needs_version = ">= 2021.6.6" nox.options.sessions = ( "pre-commit",