From 04ffe5340bc78407aa929edc4191af1bafe60140 Mon Sep 17 00:00:00 2001 From: Fabio Caccamo Date: Mon, 16 Jan 2023 18:29:24 +0100 Subject: [PATCH] Update tox.ini --- tox.ini | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/tox.ini b/tox.ini index bbca603..bd7f338 100644 --- a/tox.ini +++ b/tox.ini @@ -13,6 +13,13 @@ python = 3.11: py311 [testenv] +passenv = CI,GITHUB_WORKFLOW + +setenv = + sqlite: DATABASE_ENGINE=sqlite + # mysql: DATABASE_ENGINE=mysql + postgres: DATABASE_ENGINE=postgres + deps = dj22: Django == 2.2.* dj30: Django == 3.0.* @@ -20,18 +27,12 @@ deps = dj32: Django == 3.2.* dj40: Django == 4.0.* dj41: Django == 4.1.* - # mysql: mysqlclient - postgres: psycopg2-binary - coverage - codecov -setenv = - sqlite: DATABASE_ENGINE=sqlite - # mysql: DATABASE_ENGINE=mysql - postgres: DATABASE_ENGINE=postgres + -r requirements.txt + -r requirements-test.txt + commands = coverage run --append --source=admin_interface runtests.py - coverage report -m - codecov + coverage report --show-missing --ignore-errors [testenv:migrations] setenv =