From: Oleg Broytman Date: Mon, 5 Dec 2022 10:50:21 +0000 (+0300) Subject: Feat(tox.ini): Run tests with `pytest` X-Git-Url: https://git.phdru.name/?p=cookiecutter.git;a=commitdiff_plain;h=be0da65804291647260504c72356750fe7b99e37 Feat(tox.ini): Run tests with `pytest` --- 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 .