Skip to content

Commit 0c953e3

Browse files
authored
start testing with Python 3.11 (#173)
1 parent bfc2784 commit 0c953e3

File tree

2 files changed

+47
-37
lines changed

2 files changed

+47
-37
lines changed

.github/workflows/ci-tests.yml

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,19 +11,19 @@ concurrency:
1111
cancel-in-progress: true
1212

1313
env:
14-
singularity_version: 3.6.4
14+
singularity_version: 3.8.3
1515

1616
jobs:
1717

1818
tox:
1919
name: CI tests via Tox
2020

21-
runs-on: ubuntu-20.04
21+
runs-on: ubuntu-20.04 # 22.04 doesn't support Python 3.6
2222

2323
strategy:
2424
matrix:
2525
py-ver-major: [3]
26-
py-ver-minor: [6, 7, 8, 9, 10]
26+
py-ver-minor: [6, 7, 8, 9, 10, 11]
2727
step: [lint, unit, bandit, mypy]
2828
exclude:
2929
- py-ver-major: 3
@@ -46,10 +46,17 @@ jobs:
4646
singularity-version: ${{ env.singularity_version }}
4747

4848
- name: Set up Python
49+
if: matrix.py-ver-minor != 11
4950
uses: actions/setup-python@v4
5051
with:
5152
python-version: ${{ env.py-semver }}
5253

54+
- name: Set up Python 3.11.0-rc.2
55+
if: matrix.py-ver-minor == 11
56+
uses: actions/setup-python@v4
57+
with:
58+
python-version: 3.11.0-rc.2
59+
5360
- name: Cache for pip
5461
uses: actions/cache@v3
5562
with:
@@ -121,7 +128,7 @@ jobs:
121128
release_test:
122129
name: cwl-utils release test
123130

124-
runs-on: ubuntu-20.04
131+
runs-on: ubuntu-22.04
125132

126133
steps:
127134
- uses: actions/checkout@v3

tox.ini

Lines changed: 36 additions & 33 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{36,37,38,39,310}-bandit,
6-
py{37,38,39,310}-mypy,
7-
py310-lint-readme,
8-
py310-pydocstyle
3+
py{36,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+
py311-lint-readme,
8+
py311-pydocstyle
99

1010
skip_missing_interpreters = True
1111

@@ -19,60 +19,61 @@ python =
1919
3.8: py38
2020
3.9: py39
2121
3.10: py310
22+
3.11: py311
2223

2324
[testenv]
2425
description =
25-
py{36,37,38,39,310}-unit: Run the unit tests
26-
py{36,37,38,39,310}-lint: Lint the Python code
27-
py{36,37,38,39,310}-bandit: Search for common security issues
28-
py{37,38,39,310}-mypy: Check for type safety
29-
py310-pydocstyle: docstring style checker
30-
py310-lint-readme: Lint the README.rst->.md conversion
26+
py{36,37,38,39,310,311}-unit: Run the unit tests
27+
py{36,37,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
30+
py311-pydocstyle: docstring style checker
31+
py311-lint-readme: Lint the README.rst->.md conversion
3132

3233
passenv =
3334
CI
3435
GITHUB_*
3536
deps =
36-
py{36,37,38,39,310}-{unit,mypy}: -rrequirements.txt
37-
py{36,37,38,39,310}-{unit,mypy}: -rtest-requirements.txt
38-
py{36,37,38,39,310}-lint: flake8-bugbear
39-
py{36,37,38,39,310}-lint: black
40-
py{36,37,38,39,310}-bandit: bandit
41-
py{36,37,38,39,310}-mypy: -rmypy-requirements.txt
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{36,37,38,39,310,311}-lint: flake8-bugbear
40+
py{36,37,38,39,310,311}-lint: black
41+
py{36,37,38,39,310,311}-bandit: bandit
42+
py{37,38,39,310,311}-mypy: -rmypy-requirements.txt
4243

4344
setenv =
44-
py{36,37,38,39,310}-unit: LC_ALL = C.UTF-8
45+
py{36,37,38,39,310,311}-unit: LC_ALL = C.UTF-8
4546

4647
commands =
47-
py{36,37,38,39,310}-unit: python -m pip install -U pip setuptools wheel
48-
py{36,37,38,39,310}-unit: make coverage-report coverage.xml PYTEST_EXTRA={posargs}
49-
py{36,37,38,39,310}-bandit: bandit --recursive cwl_utils
50-
py{36,37,38,39,310}-lint: make flake8
51-
py{36,37,38,39,310}-lint: make format-check
52-
py{37,38,39,310}-mypy: make mypy
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{36,37,38,39,310,311}-lint: make flake8
52+
py{36,37,38,39,310,311}-lint: make format-check
53+
py{37,38,39,310,311}-mypy: make mypy
5354
py37-mypy: make mypy_3.6
5455

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

6061
skip_install =
61-
py{36,37,38,39,310}-lint: true
62-
py{36,37,38,39,310}-bandit: true
62+
py{36,37,38,39,310,311}-lint: true
63+
py{36,37,38,39,310,311}-bandit: true
6364

6465
extras =
65-
py{36,37,38,39,310}-unit: pretty
66+
py{36,37,38,39,310,311}-unit: pretty
6667

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

75-
[testenv:py310-lint-readme]
76+
[testenv:py311-lint-readme]
7677
description = Lint the README.rst->.md conversion
7778
commands =
7879
python setup.py sdist
@@ -81,3 +82,5 @@ commands =
8182
deps =
8283
twine
8384
wheel
85+
readme_renderer[md]
86+
skip_install = true

0 commit comments

Comments
 (0)