]> git.phdru.name Git - cookiecutter.git/commitdiff
Feat(tox.ini): Run tests with `pytest`
authorOleg Broytman <phd@phdru.name>
Mon, 5 Dec 2022 10:50:21 +0000 (13:50 +0300)
committerOleg Broytman <phd@phdru.name>
Mon, 5 Dec 2022 10:50:21 +0000 (13:50 +0300)
project_template/tox.ini

index 114bda60e61de2bad71414b62253bacc6496ea0c..827f97076c67d08f7152c3ba30bfdc8dead285af 100644 (file)
@@ -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 .