From b6946472693f4d504a3c74664ebe7de3aec1f35a Mon Sep 17 00:00:00 2001 From: ARYAN-NIKNEZHAD Date: Thu, 22 Aug 2024 07:19:06 +0430 Subject: [PATCH] :wrench: chore: Add tox config - Test project with different python and django versions Closes(#4) --- tox.ini | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 tox.ini diff --git a/tox.ini b/tox.ini new file mode 100644 index 0000000..a1de588 --- /dev/null +++ b/tox.ini @@ -0,0 +1,28 @@ +[tox] +envlist = + py38-django40, py39-django40, py310-django40, py311-django40, py312-django40, + py310-django50, py311-django50, py312-django50 + +[gh-actions] +python = + 3.8: py38 + 3.9: py39 + 3.10: py310 + 3.11: py311 + 3.12: py312 + +[testenv] +description = Run Pytest tests with multiple django versions +usedevelop = True +deps = + django40: django>=4.2,<5.0 + django50: django>=5.0,<5.3 + pytest + pytest-django + pytest-cov + django-stubs +commands = + pytest --cov + +setenv = + DJANGO_SETTINGS_MODULE = kernel.settings \ No newline at end of file