Skip to content

Commit 5f99327

Browse files
authored
test with Python 3.10 (#1546)
1 parent aec33fc commit 5f99327

File tree

3 files changed

+27
-26
lines changed

3 files changed

+27
-26
lines changed

.github/workflows/ci-tests.yml

Lines changed: 1 addition & 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]
23+
py-ver-minor: [6, 7, 8, 9, 10]
2424
step: [lint, unit, bandit, mypy]
2525

2626
env:

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ intended to be feature complete and provide comprehensive validation of CWL
5151
files as well as provide other tools related to working with CWL.
5252

5353
This is written and tested for
54-
`Python <https://www.python.org/>`_ ``3.x {x = 6, 7, 8, 9}``
54+
`Python <https://www.python.org/>`_ ``3.x {x = 6, 7, 8, 9, 10}``
5555

5656
The reference implementation consists of two packages. The ``cwltool`` package
5757
is the primary Python module containing the reference implementation in the

tox.ini

Lines changed: 25 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
[tox]
22
envlist =
3-
py3{6,7,8,9}-lint
4-
py3{6,7,8,9}-unit
5-
py3{6,7,8,9}-bandit
6-
py3{6,7,8,9}-mypy
3+
py3{6,7,8,9,10}-lint
4+
py3{6,7,8,9,10}-unit
5+
py3{6,7,8,9,10}-bandit
6+
py3{6,7,8,9,10}-mypy
77
py39-lintreadme
88
py39-shellcheck
99
py39-pydocstyle
@@ -20,16 +20,17 @@ python =
2020
3.7: py37
2121
3.8: py38
2222
3.9: py39
23+
3.10: py310
2324

2425
[testenv]
2526
skipsdist =
26-
py3{5,7,8,9}-!{unit,mypy,lintreadme} = True
27+
py3{5,7,8,9,10}-!{unit,mypy,lintreadme} = True
2728

2829
description =
29-
py3{6,7,8,9}-unit: Run the unit tests
30-
py3{6,7,8,9}-lint: Lint the Python code
31-
py3{6,7,8,9}-bandit: Search for common security issues
32-
py3{6,7,8,9}-mypy: Check for type safety
30+
py3{6,7,8,9,10}-unit: Run the unit tests
31+
py3{6,7,8,9,10}-lint: Lint the Python code
32+
py3{6,7,8,9,10}-bandit: Search for common security issues
33+
py3{6,7,8,9,10}-mypy: Check for type safety
3334
py39-pydocstyle: docstring style checker
3435
py39-shellcheck: syntax check for shell scripts
3536
py39-lintreadme: Lint the README.rst→.md conversion
@@ -40,40 +41,40 @@ passenv =
4041
PROOT_NO_SECCOMP
4142

4243
extras =
43-
py3{6,7,8,9}-unit: deps
44+
py3{6,7,8,9,10}-unit: deps
4445

4546
deps =
46-
py3{6,7,8,9}-{unit,lint,bandit,mypy}: -rrequirements.txt
47-
py3{6,7,8,9}-{unit,mypy}: -rtest-requirements.txt
48-
py3{6,7,8,9}-lint: flake8-bugbear
49-
py3{6,7,8,9}-lint: black
50-
py3{6,7,8,9}-bandit: bandit
51-
py3{6,7,8,9}-bandit: importlib_metadata != 4.8.0
52-
py3{6,7,8,9}-mypy: -rmypy_requirements.txt
47+
py3{6,7,8,9,10}-{unit,lint,bandit,mypy}: -rrequirements.txt
48+
py3{6,7,8,9,10}-{unit,mypy}: -rtest-requirements.txt
49+
py3{6,7,8,9,10}-lint: flake8-bugbear
50+
py3{6,7,8,9,10}-lint: black
51+
py3{6,7,8,9,10}-bandit: bandit
52+
py3{6,7,8,9,10}-bandit: importlib_metadata != 4.8.0
53+
py3{6,7,8,9,10}-mypy: -rmypy_requirements.txt
5354
py39-pydocstyle: pydocstyle
5455
py39-pydocstyle: diff-cover
5556
py39-lintreadme: twine
5657
py39-lintreadme: wheel
5758
py39-lintreadme: readme_renderer[md]
5859

5960
setenv =
60-
py3{6,7,8,9}-unit: LC_ALL = C.UTF-8
61+
py3{6,7,8,9,10}-unit: LC_ALL = C.UTF-8
6162

6263
commands_pre =
63-
py3{6,7,8,9}-unit: python -m pip install -U pip setuptools wheel
64+
py3{6,7,8,9,10}-unit: python -m pip install -U pip setuptools wheel
6465
py39-lintreadme: python setup.py sdist --dist-dir {distdir}
6566
py39-lintreadme: python setup.py bdist_wheel --dist-dir {distdir}
6667

6768
commands =
68-
py3{6,7,8,9}-unit: make coverage-report coverage.xml PYTEST_EXTRA={posargs}
69-
py3{6,7,8,9}-bandit: bandit -r cwltool
70-
py3{6,7,8,9}-lint: make flake8 format-check
71-
py3{6,7,8,9}-mypy: make mypy mypyc PYTEST_EXTRA={posargs}
69+
py3{6,7,8,9,10}-unit: make coverage-report coverage.xml PYTEST_EXTRA={posargs}
70+
py3{6,7,8,9,10}-bandit: bandit -r cwltool
71+
py3{6,7,8,9,10}-lint: make flake8 format-check
72+
py3{6,7,8,9,10}-mypy: make mypy mypyc PYTEST_EXTRA={posargs}
7273
py39-shellcheck: make shellcheck
7374
py39-pydocstyle: make diff_pydocstyle_report
7475
py39-lintreadme: twine check {distdir}/*
7576

7677
skip_install =
77-
py3{6,7,8,9}-{bandit,lint,mypy,shellcheck,pydocstyle,lintreadme}: true
78+
py3{6,7,8,9,10}-{bandit,lint,mypy,shellcheck,pydocstyle,lintreadme}: true
7879

7980
allowlist_externals = make

0 commit comments

Comments
 (0)