Skip to content

Commit 49cf3a7

Browse files
committed
CI: start testing Python 3.11 (no mypy for now)
1 parent 9bf271d commit 49cf3a7

File tree

3 files changed

+37
-31
lines changed

3 files changed

+37
-31
lines changed

.github/workflows/ci-tests.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,12 @@ jobs:
2020
strategy:
2121
matrix:
2222
py-ver-major: [3]
23-
py-ver-minor: [6, 7, 8, 9, 10]
23+
py-ver-minor: [6, 7, 8, 9, 10, 11]
2424
step: [lint, unit, mypy]
25+
exclude:
26+
- py-ver-major: 3
27+
py-ver-minor: 11
28+
step: mypy
2529

2630
env:
2731
py-semver: ${{ format('{0}.{1}', matrix.py-ver-major, matrix.py-ver-minor) }}

setup.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
"develop",
3535
"bdist_egg",
3636
"editable_wheel",
37+
"test",
3738
]
3839
):
3940
mypyc_targets = [
@@ -117,7 +118,7 @@
117118
download_url="https://github.com/common-workflow-language/schema_salad/releases",
118119
ext_modules=ext_modules,
119120
license="Apache 2.0",
120-
python_requires=">=3.6,<3.11",
121+
python_requires=">=3.6,<=3.11",
121122
setup_requires=pytest_runner + ["setuptools_scm"],
122123
packages=["schema_salad", "schema_salad.tests", "schema_salad.avro"],
123124
package_data={

tox.ini

Lines changed: 30 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
[tox]
22
envlist =
3-
py{36,37,38,39,310}-lint,
4-
py{36,37,38,39,310}-unit,
5-
py{37,38,39,310}-bandit,
3+
py{36,37,38,39,310,311}-lint,
4+
py{36,37,38,39,310,311}-unit,
5+
py{37,38,39,310,311}-bandit,
66
py{36,37,38,39,310}-mypy,
7-
py39-lintreadme,
8-
py39-pydocstyle
7+
py310-lintreadme,
8+
py310-pydocstyle
99

1010
skip_missing_interpreters = True
1111

@@ -20,60 +20,61 @@ python =
2020
3.8: py38
2121
3.9: py39
2222
3.10: py310
23+
3.11: py311
2324

2425
[testenv]
2526
description =
26-
py{36,37,38,39,310}-unit: Run the unit tests
27-
py{36,37,38,39,310}-lint: Lint the Python code
28-
py{37,38,39,310}-bandit: Search for common security issues
27+
py{36,37,38,39,310,311}-unit: Run the unit tests
28+
py{36,37,38,39,310,311}-lint: Lint the Python code
29+
py{37,38,39,310,311}-bandit: Search for common security issues
2930
py{36,37,38,39,310}-mypy: Check for type safety
30-
py39-pydocstyle: docstring style checker
31-
py39-lintreadme: Lint the README.rst->.md conversion
31+
py310-pydocstyle: docstring style checker
32+
py310-lintreadme: Lint the README.rst->.md conversion
3233

3334
passenv =
3435
CI
3536
GITHUB_*
3637
deps =
37-
py{36,37,38,39,310}-{unit,mypy}: -rrequirements.txt
38-
py{36,37,38,39,310}-{unit,mypy}: -rtest-requirements.txt
39-
py{36,37,38,39,310}-lint: flake8-bugbear
40-
py{36,37,38,39,310}-lint: black
41-
py{37,38,39,310}-bandit: bandit
38+
py{36,37,38,39,310,311}-{unit,mypy}: -rrequirements.txt
39+
py{36,37,38,39,310,311}-{unit,mypy}: -rtest-requirements.txt
40+
py{36,37,38,39,310,311}-lint: flake8-bugbear
41+
py{36,37,38,39,310,311}-lint: black
42+
py{37,38,39,310,311}-bandit: bandit
4243
py{36,37,38,39,310}-mypy: -rmypy-requirements.txt
4344

4445
setenv =
45-
py{36,37,38,39,310}-unit: LC_ALL = C.UTF-8
46+
py{36,37,38,39,310,311}-unit: LC_ALL = C.UTF-8
4647

4748
commands =
48-
py{36,37,38,39,310}-unit: python -m pip install -U pip setuptools wheel
49-
py{36,37,38,39,310}-unit: make coverage-report coverage.xml PYTEST_EXTRA={posargs}
50-
py{37,38,39,310}-bandit: bandit --recursive --exclude schema_salad/tests/ schema_salad
51-
py{36,37,38,39,310}-lint: make flake8
52-
py{36,37,38,39,310}-lint: make format-check
49+
py{36,37,38,39,310,311}-unit: python -m pip install -U pip setuptools wheel
50+
py{36,37,38,39,310,311}-unit: make coverage-report coverage.xml PYTEST_EXTRA={posargs}
51+
py{37,38,39,310,311}-bandit: bandit --recursive --exclude schema_salad/tests/ schema_salad
52+
py{36,37,38,39,310,311}-lint: make flake8
53+
py{36,37,38,39,310,311}-lint: make format-check
5354
py{36,37,38,39,310}-mypy: make mypy
5455
py{36,37,38,39,310}-mypy: make mypyc
5556

5657
whitelist_externals =
57-
py{36,37,38,39,310}-lint: flake8
58-
py{36,37,38,39,310}-lint: black
59-
py{36,37,38,39,310}-{mypy,shellcheck,lint,unit}: make
58+
py{36,37,38,39,310,311}-lint: flake8
59+
py{36,37,38,39,310,311}-lint: black
60+
py{36,37,38,39,310,311}-{mypy,shellcheck,lint,unit}: make
6061

6162
skip_install =
62-
py{36,37,38,39,310}-lint: true
63-
py{37,38,39,310}-bandit: true
63+
py{36,37,38,39,310,311}-lint: true
64+
py{37,38,39,310,311}-bandit: true
6465

6566
extras =
66-
py{36,37,38,39,310}-unit: pycodegen
67+
py{36,37,38,39,310,311}-unit: pycodegen
6768

68-
[testenv:py39-pydocstyle]
69+
[testenv:py310-pydocstyle]
6970
whitelist_externals = make
7071
commands = make diff_pydocstyle_report
7172
deps =
7273
pydocstyle
7374
diff-cover
7475
skip_install = true
7576

76-
[testenv:py39-lintreadme]
77+
[testenv:py310-lintreadme]
7778
description = Lint the README.rst->.md conversion
7879
commands =
7980
python setup.py sdist

0 commit comments

Comments
 (0)