Skip to content

Commit

Permalink
test using Python 3.12rc1
Browse files Browse the repository at this point in the history
  • Loading branch information
mr-c committed Aug 8, 2023
1 parent 2398056 commit 139c64b
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 28 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/ci-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
strategy:
matrix:
py-ver-major: [3]
py-ver-minor: [6, 7, 8, 9, 10, 11]
py-ver-minor: [6, 7, 8, 9, 10, 11, 12]
step: [lint, unit, bandit, mypy]
exclude:
- py-ver-major: 3
Expand Down Expand Up @@ -51,6 +51,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v4
with:
allow-prereleases: true
python-version: ${{ env.py-semver }}
cache: pip
cache-dependency-path: |
Expand Down
2 changes: 2 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Typing :: Typed",
],
)
55 changes: 28 additions & 27 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
[tox]
envlist =
py{38,39,310,311}-lint,
py{36,37,38,39,310,311}-unit,
py{36,37,38,39,310,311}-bandit,
py{37,38,39,310,311}-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-lint-readme,
py311-pydocstyle

Expand All @@ -20,50 +20,51 @@ python =
3.9: py39
3.10: py310
3.11: py311
3.12: py312

[testenv]
description =
py{36,37,38,39,310,311}-unit: Run the unit tests
py{38,39,310,311}-lint: Lint the Python code
py{36,37,38,39,310,311}-bandit: Search for common security issues
py{37,38,39,310,311}-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-lint-readme: Lint the README.rst->.md conversion

passenv =
CI
GITHUB_*
deps =
py{36,37,38,39,310,311}-{unit,mypy}: -rrequirements.txt
py{36,37,38,39,310,311}-{unit,mypy}: -rtest-requirements.txt
py{38,39,310,311}-lint: -rlint-requirements.txt
py{36,37,38,39,310,311}-bandit: bandit
py{36,37}-bandit: importlib-metadata<5 # work around https://github.com/PyCQA/bandit/issues/956
py{37,38,39,310,311}-mypy: -rmypy-requirements.txt
py3{6,7,8,9,10,11,12}-{unit,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}-bandit: importlib-metadata<5 # work around https://github.com/PyCQA/bandit/issues/956
py3{7,8,9,10,11,12}-mypy: -rmypy-requirements.txt

setenv =
py{36,37,38,39,310,311}-unit: LC_ALL = C.UTF-8
py3{6,7,8,9,10,11,12}-unit: LC_ALL = C.UTF-8

commands =
py{36,37,38,39,310,311}-unit: python -m pip install -U pip setuptools wheel
py{36,37,38,39,310,311}-unit: make coverage-report coverage.xml PYTEST_EXTRA={posargs}
py{36,37,38,39,310,311}-bandit: bandit --recursive cwl_utils
py{38,39,310,311}-lint: make flake8
py{38,39,310,311}-lint: make format-check
py{37,38,39,310,311}-mypy: make mypy
py3{6,7,8,9,10,11,12}-unit: python -m pip install -U pip setuptools wheel
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 --recursive cwl_utils
py3{8,9,10,11,12}-lint: make flake8
py3{8,9,10,11,12}-lint: make format-check
py3{7,8,9,10,11,12}-mypy: make mypy
py37-mypy: make mypy_3.6

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

skip_install =
py{38,39,310,311}-lint: true
py{36,37,38,39,310,311}-bandit: true
py{8,9,10,11,12}-lint: true
py{6,7,8,9,10,11,12}-bandit: true

extras =
py{36,37,38,39,310,311}-unit: pretty
py3{6,7,8,9,10,11,12}-unit: pretty

[testenv:py311-pydocstyle]
allowlist_externals = make
Expand Down

0 comments on commit 139c64b

Please sign in to comment.