Feat(tox.ini): Run tests with `pytest`
[cookiecutter.git] / project_template / tox.ini
1 [tox]
2 minversion = 3.15
3 envlist = py27,py3{4,5,6,7,8,9,10,11},pypy,pypy3,py{27,36,311}-flake8
4
5 [testenv]
6 commands =
7     {envpython} --version
8     {envpython} -c "import struct; print(struct.calcsize('P') * 8)"
9     {envpython} -m pytest --version
10 passenv = CI DISTUTILS_USE_SDK MSSdk INCLUDE LIB WINDIR
11 deps =
12     -rdevscripts/requirements/requirements_tests.txt
13
14 [testenv:py{27,34,35,36,37,38,39,310,311,py,py3}]
15 commands =
16     {[testenv]commands}
17     {envpython} -m pytest
18
19 [testenv:py{27,34,35,36,37,38,39,310,311}-flake8]
20 deps =
21     flake8
22     pytest < 7.0
23 commands =
24     {[testenv]commands}
25     flake8 .