From 14e93982b78410eb0149b9e10ded3e7d7d228cc6 Mon Sep 17 00:00:00 2001 From: "Brian C. Lane" Date: Tue, 8 Aug 2023 10:37:23 -0700 Subject: [PATCH] tests: Add python 3.12 support Add it to tox.ini and pin pycodestyle to 2.10.0 until it has been updated to fix: https://github.com/hhatto/autopep8/issues/689 and https://github.com/hhatto/autopep8/pull/696 Add python-3.12.0-rc.1 to the github workflow Do not switch to Ubuntu 22.04, it does not have python3.6 available and we still need to test with it. --- .github/workflows/tests.yml | 4 +++- tox.ini | 7 ++++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 4433fee2..bf99a391 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -19,7 +19,7 @@ jobs: fail-fast: false max-parallel: 5 matrix: - python-version: [3.6, 3.7, 3.8, 3.9, "3.10", "3.11"] + python-version: [3.6, 3.7, 3.8, 3.9, "3.10", "3.11", "3.12.0-rc.1"] include: - python-version: 3.6 tox-env: py36 @@ -33,6 +33,8 @@ jobs: tox-env: py310 - python-version: "3.11" tox-env: py311 + - python-version: "3.12.0-rc.1" + tox-env: py312 steps: - name: "Clone Repository" uses: actions/checkout@v3 diff --git a/tox.ini b/tox.ini index 38a8b21b..7bb22d79 100644 --- a/tox.ini +++ b/tox.ini @@ -1,5 +1,10 @@ [tox] -envlist = py36, py37, py38, py39, py310, py311, mypy +envlist = py36, py37, py38, py39, py310, py311, py312, mypy + +[testenv:py312] +deps = + -rrequirements.txt + pycodestyle==2.10.0 [testenv] deps = -rrequirements.txt