From eab9ef7934718b4198afd3ba31f2ca9c33f217ae Mon Sep 17 00:00:00 2001 From: ARYAN-NIKNEZHAD Date: Thu, 22 Aug 2024 07:45:39 +0430 Subject: [PATCH] :wrench: chore: Add-tox-config - Test with different python versions Closes(#44) --- .github/workflows/ci.yml | 2 ++ tox.ini | 21 +++++++++++++++++++++ 2 files changed, 23 insertions(+) create mode 100644 tox.ini 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