From 433d13ad6f5d54c40a67a0718a53bd6bf0b30c57 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, and updated the Ubuntu runner to version 22.04 --- .github/workflows/tests.yml | 6 ++++-- tox.ini | 7 ++++++- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 4433fee2..68cecd9b 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -14,12 +14,12 @@ on: jobs: unit-tests: - runs-on: ubuntu-20.04 + runs-on: ubuntu-22.04 strategy: 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