]> git.phdru.name Git - ppu.git/blob - tox.ini
Build(GHActions): Use `checkout@v4` instead of outdated `v2`
[ppu.git] / tox.ini
1 [tox]
2 minversion = 1.8
3 envlist = py{27,34,35,36,37}, pypy, py{27,37}-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     pypy: {env:TOXPYTHON:pypy}
14 commands =
15     {envpython} --version
16     {envpython} -c "import struct; print(struct.calcsize('P') * 8)"
17 deps =
18     -rdevscripts/requirements/requirements_tests.txt
19
20 [general]
21 commands =
22     {envpython} -m pytest
23
24 [testenv:py27]
25 commands =
26     {[testenv]commands}
27     {[general]commands}
28
29 [testenv:py34]
30 commands =
31     {[testenv]commands}
32     {[general]commands}
33
34 [testenv:py35]
35 commands =
36     {[testenv]commands}
37     {[general]commands}
38
39 [testenv:py36]
40 commands =
41     {[testenv]commands}
42     {[general]commands}
43
44 [testenv:py37]
45 commands =
46     {[testenv]commands}
47     {[general]commands}
48
49 [testenv:pypy]
50 commands =
51     {[testenv]commands}
52     {[general]commands}
53
54 [testenv:py27-flake8]
55 deps =
56     flake8
57 commands =
58     {[testenv]commands}
59     flake8
60
61 [testenv:py37-flake8]
62 deps =
63     flake8
64 commands =
65     {[testenv]commands}
66     flake8