Skip to content

Commit fc8cf0b

Browse files
committed
testing: drop Python 3.7, add 3.12
1 parent 1a1a5ff commit fc8cf0b

File tree

3 files changed

+39
-38
lines changed

3 files changed

+39
-38
lines changed

.github/workflows/ci-tests.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
matrix:
2222
# The README.rst file mentions the versions tested, please update it as well
2323
py-ver-major: [3]
24-
py-ver-minor: [6, 7, 8, 9, 10, 11]
24+
py-ver-minor: [6, 8, 9, 10, 11, 12]
2525
step: [lint, unit, mypy, bandit]
2626
exclude:
2727
- py-ver-major: 3
@@ -44,6 +44,7 @@ jobs:
4444
uses: actions/setup-python@v4
4545
with:
4646
python-version: ${{ env.py-semver }}
47+
allow-prereleases: true
4748
cache: pip
4849
cache-dependency-path: |
4950
requirements.txt
@@ -75,7 +76,7 @@ jobs:
7576
tox-style:
7677
name: CI linters via Tox
7778

78-
runs-on: ubuntu-20.04
79+
runs-on: ubuntu-22.04
7980

8081
strategy:
8182
matrix:

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,11 +65,11 @@
6565
"Operating System :: MacOS :: MacOS X",
6666
"Development Status :: 5 - Production/Stable",
6767
"Programming Language :: Python :: 3.6",
68-
"Programming Language :: Python :: 3.7",
6968
"Programming Language :: Python :: 3.8",
7069
"Programming Language :: Python :: 3.9",
7170
"Programming Language :: Python :: 3.10",
7271
"Programming Language :: Python :: 3.11",
72+
"Programming Language :: Python :: 3.12",
7373
"Typing :: Typed",
7474
],
7575
)

tox.ini

Lines changed: 35 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
[tox]
22
envlist =
3-
py{37,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,
7-
py310-lintreadme,
8-
py310-pydocstyle
3+
py3{8,9,10,11,12}-lint,
4+
py3{6,8,9,10,11,12}-unit,
5+
py3{6,8,9,10,11,12}-bandit,
6+
py3{8,9,10,11,12}-mypy,
7+
py311-lintreadme,
8+
py311-pydocstyle
99

1010
skip_missing_interpreters = True
1111

@@ -17,72 +17,72 @@ testpaths = tests
1717
[gh-actions]
1818
python =
1919
3.6: py36
20-
3.7: py37
2120
3.8: py38
2221
3.9: py39
2322
3.10: py310
2423
3.11: py311
24+
3.12: py312
2525

2626
[testenv]
2727
skipsdist =
2828
py3{6,7,8,9,10,11}-!{unit,mypy,lintreadme} = True
2929

3030
description =
31-
py{36,37,38,39,310,311}-unit: Run the unit tests
32-
py{36,37,38,39,310,311}-lint: Lint the Python code
33-
py{36,37,38,39,310,311}-bandit: Search for common security issues
34-
py{37,38,39,310,311}-mypy: Check for type safety
35-
py310-pydocstyle: docstring style checker
36-
py310-lintreadme: Lint the README.rst->.md conversion
31+
py3{6,8,9,10,11,12}-unit: Run the unit tests
32+
py3{6,8,9,10,11,12}-lint: Lint the Python code
33+
py3{6,8,9,10,11,12}-bandit: Search for common security issues
34+
py3{8,9,10,11,12}-mypy: Check for type safety
35+
py311-pydocstyle: docstring style checker
36+
py311-lintreadme: Lint the README.rst->.md conversion
3737

3838
passenv =
3939
CI
4040
GITHUB_*
4141

4242
deps =
43-
py{36,37,38,39,310,311}-{unit,mypy}: -rrequirements.txt
44-
py{36,37,38,39,310,311}-{unit,mypy}: -rtest-requirements.txt
45-
py{36,37,38,39,310,311}-lint: flake8-bugbear
46-
py{36,37,38,39,310,311}-lint: black~=23.1
47-
py{36,37,38,39,310,311}-bandit: bandit
48-
py{37,38,39,310,311}-mypy: -rmypy-requirements.txt
43+
py3{6,8,9,10,11,12}-{unit,mypy}: -rrequirements.txt
44+
py3{6,8,9,10,11,12}-{unit,mypy}: -rtest-requirements.txt
45+
py3{6,8,9,10,11,12}-lint: flake8-bugbear
46+
py3{6,8,9,10,11,12}-lint: black~=23.1
47+
py3{6,8,9,10,11,12}-bandit: bandit
48+
py3{8,9,10,11,12}-mypy: -rmypy-requirements.txt
4949

5050
setenv =
51-
py{36,37,38,39,310,311}-unit: LC_ALL = C.UTF-8
51+
py3{6,8,3,10,11,12}-unit: LC_ALL = C.UTF-8
5252
COV_CORE_SOURCE=cwltest
5353
COV_CORE_CONFIG={toxinidir}/.coveragerc
5454
COV_CORE_DATAFILE={toxinidir}/.coverage.eager
5555

5656

5757
commands =
58-
py{36,37,38,39,310,311}-unit: python -m pip install -U pip setuptools wheel
59-
py{36,37,38,39,310,311}-unit: python -m pytest --cov --cov-config={toxinidir}/.coveragerc --cov-append {posargs}
60-
py{36,37,38,39,310,311}-unit: coverage xml
61-
py{36,37,38,39,310,311}-bandit: bandit --recursive cwltest
62-
py{36,37,38,39,310,311}-lint: make flake8
63-
py{36,37,38,39,310,311}-lint: make format-check
64-
py{37,38,39,310,311}-mypy: make mypy
65-
py37-mypy: make mypy_3.6
58+
py3{6,8,9,10,11,12}-unit: python -m pip install -U pip setuptools wheel
59+
py3{6,8,9,10,11,12}-unit: python -m pytest --cov --cov-config={toxinidir}/.coveragerc --cov-append {posargs}
60+
py3{6,8,9,10,11,12}-unit: coverage xml
61+
py3{6,8,9,10,11,12}-bandit: bandit --recursive cwltest
62+
py3{6,8,9,10,11,12}-lint: make flake8
63+
py3{6,8,9,10,11,12}-lint: make format-check
64+
py3{8,9,10,11,12}-mypy: make mypy
65+
py38-mypy: make mypy_3.6
6666

6767
allowlist_externals =
68-
py{36,37,38,39,310,311}-lint: flake8
69-
py{36,37,38,39,310,311}-lint: black
70-
py{36,37,38,39,310,311}-{mypy,shellcheck,lint,unit}: make
68+
py3{6,8,9,10,11,12}-lint: flake8
69+
py3{6,8,9,10,11,12}-lint: black
70+
py3{6,8,9,10,11,12}-{mypy,shellcheck,lint,unit}: make
7171

7272
skip_install =
73-
py{36,37,38,39,310,311}-lint: true
74-
py{36,37,38,39,310,311}-bandit: true
73+
py3{6,8,9,10,11,12}-lint: true
74+
py3{6,8,9,10,11,12}-bandit: true
7575

7676

77-
[testenv:py310-pydocstyle]
77+
[testenv:py311-pydocstyle]
7878
allowlist_externals = make
7979
commands = make diff_pydocstyle_report
8080
deps =
8181
pydocstyle
8282
diff-cover
8383
skip_install = true
8484

85-
[testenv:py310-lintreadme]
85+
[testenv:py311-lintreadme]
8686
description = Lint the README.rst->.md conversion
8787
commands =
8888
python -m build --outdir {distdir}

0 commit comments

Comments
 (0)