From 8a276813dabfbb80fee89b03e10d7df664b49faf Mon Sep 17 00:00:00 2001 From: mayeut Date: Sat, 22 Apr 2023 11:29:28 +0200 Subject: [PATCH] Add python 3.12 to CI --- .github/workflows/test.yml | 10 +++------- noxfile.py | 2 +- pyproject.toml | 1 + 3 files changed, 5 insertions(+), 8 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index d3d38710..13b3aea8 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -23,7 +23,7 @@ jobs: matrix: os: [Ubuntu, Windows, macOS] python_version: - ["3.7", "3.8", "3.9", "3.10", "3.11", "pypy3.8", "pypy3.9"] + ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12", "pypy3.8", "pypy3.9"] steps: - uses: actions/checkout@v3 @@ -33,11 +33,7 @@ jobs: with: python-version: ${{ matrix.python_version }} cache: "pip" + allow-prereleases: true - name: Run nox - run: | - # Need to remove "-dev" suffix - INTERPRETER=${{ matrix.python_version }} - INTERPRETER=${INTERPRETER/-dev/} - pipx run nox --error-on-missing-interpreters -s tests-${INTERPRETER} - shell: bash + run: pipx run nox --error-on-missing-interpreters -s tests-${{ matrix.python_version }} diff --git a/noxfile.py b/noxfile.py index da5abc73..33d0346e 100644 --- a/noxfile.py +++ b/noxfile.py @@ -21,7 +21,7 @@ nox.options.reuse_existing_virtualenvs = True -@nox.session(python=["3.7", "3.8", "3.9", "3.10", "3.11", "pypy3.8", "pypy3.9"]) +@nox.session(python=["3.7", "3.8", "3.9", "3.10", "3.11", "3.12", "pypy3.8", "pypy3.9"]) def tests(session): def coverage(*args): session.run("python", "-m", "coverage", *args) diff --git a/pyproject.toml b/pyproject.toml index 7cdb62db..d2379151 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -23,6 +23,7 @@ classifiers = [ "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: 3.12", "Programming Language :: Python :: Implementation :: CPython", "Programming Language :: Python :: Implementation :: PyPy", "Typing :: Typed",