Skip to content

Commit

Permalink
tests: Add python 3.12 support
Browse files Browse the repository at this point in the history
Add it to tox.ini and pin pycodestyle to 2.10.0 until it has been
updated to fix:
hhatto/autopep8#689 and
hhatto/autopep8#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.
  • Loading branch information
bcl committed Aug 8, 2023
1 parent d8cedb5 commit aedee5f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
7 changes: 6 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit aedee5f

Please sign in to comment.