Skip to content

Commit

Permalink
start testing with Python 3.12
Browse files Browse the repository at this point in the history
  • Loading branch information
mr-c committed Aug 8, 2023
1 parent 1573509 commit d0322ca
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 24 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/ci-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
strategy:
matrix:
py-ver-major: [3]
py-ver-minor: [6, 8, 9, 10, 11]
py-ver-minor: [6, 8, 9, 10, 11, 12]
step: [lint, unit, bandit, mypy]
exclude:
- py-ver-major: 3
Expand Down Expand Up @@ -65,6 +65,7 @@ jobs:
uses: actions/setup-python@v4
with:
python-version: ${{ env.py-semver }}
allow-prereleases: true
cache: pip
cache-dependency-path: |
requirements.txt
Expand Down
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,7 @@
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Scientific/Engineering",
"Topic :: Scientific/Engineering :: Bio-Informatics",
"Topic :: Scientific/Engineering :: Astronomy",
Expand Down
48 changes: 25 additions & 23 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
[tox]
envlist =
py3{8,9,10,11}-lint
py3{6,7,8,9,10,11}-unit
py3{6,7,8,9,10,11}-bandit
py3{7,8,9,10,11}-mypy
py3{8,9,10,11,12}-lint
py3{6,7,8,9,10,11,12}-unit
py3{6,7,8,9,10,11,12}-bandit
py3{7,8,9,10,11,12}-mypy
py311-lintreadme
py311-shellcheck
py311-pydocstyle
Expand All @@ -22,16 +22,17 @@ python =
3.9: py39
3.10: py310
3.11: py311
3.12: py312

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

description =
py3{6,7,8,9,10,11}-unit: Run the unit tests
py3{8,9,10,11}-lint: Lint the Python code
py3{6,7,8,9,10,11}-bandit: Search for common security issues
py3{7,8,9,10,11}-mypy: Check for type safety
py3{6,7,8,9,10,11,12}-unit: Run the unit tests
py3{8,9,10,11,12}-lint: Lint the Python code
py3{6,7,8,9,10,11,12}-bandit: Search for common security issues
py3{7,8,9,10,11,12}-mypy: Check for type safety
py311-pydocstyle: docstring style checker
py311-shellcheck: syntax check for shell scripts
py311-lintreadme: Lint the README.rst→.md conversion
Expand All @@ -42,39 +43,40 @@ passenv =
PROOT_NO_SECCOMP

extras =
py3{6,7,8,9,10,11}-unit: deps
py3{6,7,8,9,10,11,12}-unit: deps

deps =
py3{6,7,8,9,10,11}-{unit,lint,bandit,mypy}: -rrequirements.txt
py3{6,7,8,9,10,11}-{unit,mypy}: -rtest-requirements.txt
py3{8,9,10,11}-lint: -rlint-requirements.txt
py3{6,7,8,9,10,11}-bandit: bandit
py3{6,7,8,9,10,11}-bandit: importlib_metadata != 4.8.0
py3{7,8,9,10,11}-mypy: -rmypy-requirements.txt
py3{6,7,8,9,10,11,12}-{unit,lint,bandit,mypy}: -rrequirements.txt
py3{6,7,8,9,10,11.12}-{unit,mypy}: -rtest-requirements.txt
py3{8,9,10,11,12}-lint: -rlint-requirements.txt
py3{6,7,8,9,10,11,12}-bandit: bandit
py3{6,7,8,9,10,11,12}-bandit: importlib_metadata != 4.8.0
py3{7,8,9,10,11,12}-mypy: -rmypy-requirements.txt
py311-pydocstyle: pydocstyle
py311-pydocstyle: diff-cover
py311-lintreadme: twine
py311-lintreadme: build
py311-lintreadme: readme_renderer[rst]

setenv =
py3{6,7,8,9,10,11}-unit: LC_ALL = C.UTF-8
py3{6,7,8,9,10,11,12}-unit: LC_ALL = C.UTF-8

commands_pre =
py3{6,7,8,9,10,11}-unit: python -m pip install -U pip setuptools wheel
py3{6,7,8,9,10,11,12}-unit: python -m pip install -U pip setuptools wheel
py311-lintreadme: python -m build --outdir {distdir}

commands =
py3{6,7,8,9,10,11}-unit: make coverage-report coverage.xml PYTEST_EXTRA={posargs}
py3{6,7,8,9,10,11}-bandit: bandit -r cwltool
py3{8,9,10,11}-lint: make flake8 format-check codespell-check
py3{7,8,9,10,11}-mypy: make mypy mypyc PYTEST_EXTRA={posargs}
py3{6,7,8,9,10,11,12}-unit: make coverage-report coverage.xml PYTEST_EXTRA={posargs}
py3{6,7,8,9,10,11,12}-bandit: bandit -r cwltool
py3{8,9,10,11,12}-lint: make flake8 format-check codespell-check
py3{7,8,9,10,11,12}-mypy: make mypy PYTEST_EXTRA={posargs}
py3{7,8,9,10,11}-mypy: make mypyc PYTEST_EXTRA={posargs}
py37-mypy: make mypy_3.6
py311-shellcheck: make shellcheck
py311-pydocstyle: make diff_pydocstyle_report
py311-lintreadme: twine check {distdir}/*

skip_install =
py3{6,7,8,9,10,11}-{bandit,lint,mypy,shellcheck,pydocstyle,lintreadme}: true
py3{6,7,8,9,10,11,12}-{bandit,lint,mypy,shellcheck,pydocstyle,lintreadme}: true

allowlist_externals = make

0 comments on commit d0322ca

Please sign in to comment.