Skip to content

Commit 139c64b

Browse files
committed
test using Python 3.12rc1
1 parent 2398056 commit 139c64b

File tree

3 files changed

+32
-28
lines changed

3 files changed

+32
-28
lines changed

.github/workflows/ci-tests.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
strategy:
2121
matrix:
2222
py-ver-major: [3]
23-
py-ver-minor: [6, 7, 8, 9, 10, 11]
23+
py-ver-minor: [6, 7, 8, 9, 10, 11, 12]
2424
step: [lint, unit, bandit, mypy]
2525
exclude:
2626
- py-ver-major: 3
@@ -51,6 +51,7 @@ jobs:
5151
- name: Set up Python
5252
uses: actions/setup-python@v4
5353
with:
54+
allow-prereleases: true
5455
python-version: ${{ env.py-semver }}
5556
cache: pip
5657
cache-dependency-path: |

setup.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,8 @@
6060
"Programming Language :: Python :: 3.8",
6161
"Programming Language :: Python :: 3.9",
6262
"Programming Language :: Python :: 3.10",
63+
"Programming Language :: Python :: 3.11",
64+
"Programming Language :: Python :: 3.12",
6365
"Typing :: Typed",
6466
],
6567
)

tox.ini

Lines changed: 28 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
[tox]
22
envlist =
3-
py{38,39,310,311}-lint,
4-
py{36,37,38,39,310,311}-unit,
5-
py{36,37,38,39,310,311}-bandit,
6-
py{37,38,39,310,311}-mypy,
3+
py3{8,9,10,11,12}-lint,
4+
py3{6,7,8,9,10,11,12}-unit,
5+
py3{6,7,8,9,10,11,12}-bandit,
6+
py3{7,8,9,10,11,12}-mypy,
77
py311-lint-readme,
88
py311-pydocstyle
99

@@ -20,50 +20,51 @@ python =
2020
3.9: py39
2121
3.10: py310
2222
3.11: py311
23+
3.12: py312
2324

2425
[testenv]
2526
description =
26-
py{36,37,38,39,310,311}-unit: Run the unit tests
27-
py{38,39,310,311}-lint: Lint the Python code
28-
py{36,37,38,39,310,311}-bandit: Search for common security issues
29-
py{37,38,39,310,311}-mypy: Check for type safety
27+
py3{6,7,8,9,10,11,12}-unit: Run the unit tests
28+
py3{8,9,10,11,12}-lint: Lint the Python code
29+
py3{6,7,8,9,10,11,12}-bandit: Search for common security issues
30+
py3{7,8,9,10,11,12}-mypy: Check for type safety
3031
py311-pydocstyle: docstring style checker
3132
py311-lint-readme: Lint the README.rst->.md conversion
3233

3334
passenv =
3435
CI
3536
GITHUB_*
3637
deps =
37-
py{36,37,38,39,310,311}-{unit,mypy}: -rrequirements.txt
38-
py{36,37,38,39,310,311}-{unit,mypy}: -rtest-requirements.txt
39-
py{38,39,310,311}-lint: -rlint-requirements.txt
40-
py{36,37,38,39,310,311}-bandit: bandit
41-
py{36,37}-bandit: importlib-metadata<5 # work around https://github.com/PyCQA/bandit/issues/956
42-
py{37,38,39,310,311}-mypy: -rmypy-requirements.txt
38+
py3{6,7,8,9,10,11,12}-{unit,mypy}: -rrequirements.txt
39+
py3{6,7,8,9,10,11,12}-{unit,mypy}: -rtest-requirements.txt
40+
py3{8,9,10,11,12}-lint: -rlint-requirements.txt
41+
py3{6,7,8,9,10,11,12}-bandit: bandit
42+
py3{6,7}-bandit: importlib-metadata<5 # work around https://github.com/PyCQA/bandit/issues/956
43+
py3{7,8,9,10,11,12}-mypy: -rmypy-requirements.txt
4344

4445
setenv =
45-
py{36,37,38,39,310,311}-unit: LC_ALL = C.UTF-8
46+
py3{6,7,8,9,10,11,12}-unit: LC_ALL = C.UTF-8
4647

4748
commands =
48-
py{36,37,38,39,310,311}-unit: python -m pip install -U pip setuptools wheel
49-
py{36,37,38,39,310,311}-unit: make coverage-report coverage.xml PYTEST_EXTRA={posargs}
50-
py{36,37,38,39,310,311}-bandit: bandit --recursive cwl_utils
51-
py{38,39,310,311}-lint: make flake8
52-
py{38,39,310,311}-lint: make format-check
53-
py{37,38,39,310,311}-mypy: make mypy
49+
py3{6,7,8,9,10,11,12}-unit: python -m pip install -U pip setuptools wheel
50+
py3{6,7,8,9,10,11,12}-unit: make coverage-report coverage.xml PYTEST_EXTRA={posargs}
51+
py3{6,7,8,9,10,11,12}-bandit: bandit --recursive cwl_utils
52+
py3{8,9,10,11,12}-lint: make flake8
53+
py3{8,9,10,11,12}-lint: make format-check
54+
py3{7,8,9,10,11,12}-mypy: make mypy
5455
py37-mypy: make mypy_3.6
5556

5657
allowlist_externals =
57-
py{38,39,310,311}-lint: flake8
58-
py{38,39,310,311}-lint: black
59-
py{36,37,38,39,310,311}-{mypy,shellcheck,lint,unit}: make
58+
py3{8,9,10,11,12}-lint: flake8
59+
py3{8,9,10,11,12}-lint: black
60+
py3{6,7,8,9,10,11,12}-{mypy,shellcheck,lint,unit}: make
6061

6162
skip_install =
62-
py{38,39,310,311}-lint: true
63-
py{36,37,38,39,310,311}-bandit: true
63+
py{8,9,10,11,12}-lint: true
64+
py{6,7,8,9,10,11,12}-bandit: true
6465

6566
extras =
66-
py{36,37,38,39,310,311}-unit: pretty
67+
py3{6,7,8,9,10,11,12}-unit: pretty
6768

6869
[testenv:py311-pydocstyle]
6970
allowlist_externals = make

0 commit comments

Comments
 (0)