diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e0eba3fc..f70d61c9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -17,7 +17,7 @@ jobs: fail-fast: false matrix: os: [ubuntu-20.04] - python-version: [3.8] + python-version: [3.8, '3.8', '3.12'] test-target: [test, quality] steps: diff --git a/tox.ini b/tox.ini index a073a96b..1df38aa5 100644 --- a/tox.ini +++ b/tox.ini @@ -1,5 +1,5 @@ [tox] -envlist = py{38},quality +envlist = py{38, 312},quality skipsdist = true [isort] @@ -13,16 +13,17 @@ testpaths = tests/ norecursedirs = .* requirements [testenv] -setenv = +setenv = WORKER_CONFIGURATION_MODULE = ecommerce_worker.configuration.test -deps = +deps = -r{toxinidir}/requirements/test.txt -commands = +commands = pytest ecommerce_worker --cov-branch --cov-report=html:build/coverage/html/html/ \ - --cov-report term --cov-report=xml:build/coverage/coverage.xml \ - --cov=ecommerce_worker + --cov-report term --cov-report=xml:build/coverage/coverage.xml \ + --cov=ecommerce_worker [testenv:quality] -commands = +commands = pycodestyle --config=.pycodestyle ecommerce_worker pylint --rcfile=pylintrc ecommerce_worker +