diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ae517fa..e1dcdf0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -22,6 +22,8 @@ jobs: coverage run -m pytest - name: Generate coverage report run: coverage xml + - name: Run Tox tests + run: tox - name: Upload coverage to Codecov run: codecov env: diff --git a/tox.ini b/tox.ini new file mode 100644 index 0000000..fc86511 --- /dev/null +++ b/tox.ini @@ -0,0 +1,21 @@ +[tox] +envlist = + py38, py39, py310, py311, py312 + +[gh-actions] +python = + 3.8: py38 + 3.9: py39 + 3.10: py310 + 3.11: py311 + 3.12: py312 + +[testenv] +description = Run Pytest tests +usedevelop = True +deps = + pytest + pytest-cov + +commands = + pytest --cov