From be0da65804291647260504c72356750fe7b99e37 Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Mon, 5 Dec 2022 13:50:21 +0300 Subject: [PATCH] Feat(tox.ini): Run tests with `pytest` --- project_template/tox.ini | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/project_template/tox.ini b/project_template/tox.ini index 114bda6..827f970 100644 --- a/project_template/tox.ini +++ b/project_template/tox.ini @@ -6,17 +6,20 @@ envlist = py27,py3{4,5,6,7,8,9,10,11},pypy,pypy3,py{27,36,311}-flake8 commands = {envpython} --version {envpython} -c "import struct; print(struct.calcsize('P') * 8)" + {envpython} -m pytest --version +passenv = CI DISTUTILS_USE_SDK MSSdk INCLUDE LIB WINDIR deps = -rdevscripts/requirements/requirements_tests.txt [testenv:py{27,34,35,36,37,38,39,310,311,py,py3}] commands = {[testenv]commands} - flake8 + {envpython} -m pytest [testenv:py{27,34,35,36,37,38,39,310,311}-flake8] deps = flake8 + pytest < 7.0 commands = {[testenv]commands} - flake8 + flake8 . -- 2.39.5