]> git.phdru.name Git - ppu.git/blob - tox.ini
Test(tox): Refactor `tox.ini`: combine environments
[ppu.git] / tox.ini
1 [tox]
2 minversion = 3.15
3 envlist = py27,py3{4,5,6,7,8,9},pypy,py{27,39}-flake8
4
5 # Base test environment settings
6 [testenv]
7 basepython =
8     py27: {env:TOXPYTHON:python2.7}
9     py34: {env:TOXPYTHON:python3.4}
10     py35: {env:TOXPYTHON:python3.5}
11     py36: {env:TOXPYTHON:python3.6}
12     py37: {env:TOXPYTHON:python3.7}
13     py38: {env:TOXPYTHON:python3.8}
14     py39: {env:TOXPYTHON:python3.9}
15     pypy: {env:TOXPYTHON:pypy}
16 commands =
17     {envpython} --version
18     {envpython} -c "import struct; print(struct.calcsize('P') * 8)"
19 deps =
20     -rdevscripts/requirements/requirements_tests.txt
21
22 [testenv:{py27,py34,py35,py36,py37,py38,py39,pypy}]
23 commands =
24     {[testenv]commands}
25     {envpython} -m pytest
26
27 [testenv:{py27,py34,py35,py36,py37,py38,py39}-flake8]
28 deps =
29     flake8
30 commands =
31     {[testenv]commands}
32     flake8