From 2355b256d2f970075fb0f2f0bd5a0d3706f06f58 Mon Sep 17 00:00:00 2001 From: Dominic Davis-Foster Date: Tue, 18 Apr 2023 19:18:03 +0100 Subject: [PATCH] Test on Python 3.12 --- .github/workflows/python_ci.yml | 3 ++- .github/workflows/python_ci_linux.yml | 3 ++- .github/workflows/python_ci_macos.yml | 3 ++- repo_helper.yml | 1 + tox.ini | 9 +++++++-- 5 files changed, 14 insertions(+), 5 deletions(-) diff --git a/.github/workflows/python_ci.yml b/.github/workflows/python_ci.yml index 437f2a3..9ac91d4 100644 --- a/.github/workflows/python_ci.yml +++ b/.github/workflows/python_ci.yml @@ -22,7 +22,7 @@ jobs: runs-on: "windows-2019" continue-on-error: ${{ matrix.config.experimental }} env: - USING_COVERAGE: '3.6,3.7,3.8,3.9,3.10,3.11' + USING_COVERAGE: '3.6,3.7,3.8,3.9,3.10,3.11,3.12.0-alpha.7' strategy: fail-fast: False @@ -34,6 +34,7 @@ jobs: - {python-version: "3.9", testenvs: "py39,build", experimental: False} - {python-version: "3.10", testenvs: "py310,build", experimental: False} - {python-version: "3.11", testenvs: "py311,build", experimental: False} + - {python-version: "3.12.0-alpha.7", testenvs: "py312-dev,build", experimental: True} steps: - name: Checkout 🛎️ diff --git a/.github/workflows/python_ci_linux.yml b/.github/workflows/python_ci_linux.yml index 8e352d6..c6feab8 100644 --- a/.github/workflows/python_ci_linux.yml +++ b/.github/workflows/python_ci_linux.yml @@ -23,7 +23,7 @@ jobs: runs-on: "ubuntu-20.04" continue-on-error: ${{ matrix.config.experimental }} env: - USING_COVERAGE: '3.6,3.7,3.8,3.9,3.10,3.11' + USING_COVERAGE: '3.6,3.7,3.8,3.9,3.10,3.11,3.12.0-alpha.7' strategy: fail-fast: False @@ -35,6 +35,7 @@ jobs: - {python-version: "3.9", testenvs: "py39,build", experimental: False} - {python-version: "3.10", testenvs: "py310,build", experimental: False} - {python-version: "3.11", testenvs: "py311,build", experimental: False} + - {python-version: "3.12.0-alpha.7", testenvs: "py312-dev,build", experimental: True} steps: - name: Checkout 🛎️ diff --git a/.github/workflows/python_ci_macos.yml b/.github/workflows/python_ci_macos.yml index c5e247b..da6ef13 100644 --- a/.github/workflows/python_ci_macos.yml +++ b/.github/workflows/python_ci_macos.yml @@ -22,7 +22,7 @@ jobs: runs-on: "macos-latest" continue-on-error: ${{ matrix.config.experimental }} env: - USING_COVERAGE: '3.6,3.7,3.8,3.9,3.10,3.11' + USING_COVERAGE: '3.6,3.7,3.8,3.9,3.10,3.11,3.12.0-alpha.7' strategy: fail-fast: False @@ -34,6 +34,7 @@ jobs: - {python-version: "3.9", testenvs: "py39,build", experimental: False} - {python-version: "3.10", testenvs: "py310,build", experimental: False} - {python-version: "3.11", testenvs: "py311,build", experimental: False} + - {python-version: "3.12.0-alpha.7", testenvs: "py312-dev,build", experimental: True} steps: - name: Checkout 🛎️ diff --git a/repo_helper.yml b/repo_helper.yml index 85ee119..f049fb3 100644 --- a/repo_helper.yml +++ b/repo_helper.yml @@ -29,6 +29,7 @@ python_versions: - 3.9 - "3.10" - "3.11" + - "3.12-dev" extra_sphinx_extensions: - sphinx_click diff --git a/tox.ini b/tox.ini index 0c026a8..29ab183 100644 --- a/tox.ini +++ b/tox.ini @@ -19,7 +19,7 @@ # * pytest [tox] -envlist = py36, py37, py38, py39, py310, py311, mypy, build +envlist = py36, py37, py38, py39, py310, py311, py312-dev, mypy, build skip_missing_interpreters = True isolated_build = True requires = @@ -29,7 +29,7 @@ requires = virtualenv!=20.16.0 [envlists] -test = py36, py37, py38, py39, py310, py311 +test = py36, py37, py38, py39, py310, py311, py312-dev qa = mypy, lint cov = py38, coverage @@ -48,6 +48,11 @@ setenv = PYTHONDEVMODE=1 PIP_DISABLE_PIP_VERSION_CHECK=1 +[testenv:py312-dev] +setenv = + PYTHONDEVMODE=1 + PIP_DISABLE_PIP_VERSION_CHECK=1 + [testenv:docs] setenv = SHOW_TODOS = 1 passenv = SPHINX_BUILDER