]> git.phdru.name Git - m_librarian.git/blob - tox.ini
CI(GHActions): Show `tox`/`pytest` version
[m_librarian.git] / tox.ini
1 [tox]
2 minversion = 3.15
3 envlist = py27-sqlite,py3{4,5,6,7,8,9,10}-sqlite,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     py310: {env:TOXPYTHON:python3.10}
16 commands =
17     {envpython} --version
18     {envpython} -c "import struct; print(struct.calcsize('P') * 8)"
19     {envpython} -m pytest --version
20 deps =
21     -rdevscripts/requirements/requirements_tests.txt
22 passenv = CI DISTUTILS_USE_SDK MSSdk INCLUDE LIB WINDIR
23 platform = linux|darwin
24
25 [testenv:{py27,py34,py35,py36,py37,py38,py39,py310}-sqlite]
26 commands =
27     {[testenv]commands}
28     -rm.py -f /tmp/test.sqdb
29     {envpython} -m pytest -D sqlite:///tmp/test.sqdb
30
31 [testenv:{py27,py34,py35,py36,py37,py38,py39,py310}-sqlite-w32]
32 platform = win32
33 commands =
34     {[testenv]commands}
35     -rm.py -f {env:TEMP}/test.sqdb
36     pytest -D sqlite:/{env:TEMP}/test.sqdb?debug=1
37     rm.py -f {env:TEMP}/test.sqdb
38
39 # flake8
40 [testenv:{py27,py34,py35,py36,py37,py38,py39,py310}-flake8]
41 deps =
42     flake8
43     pytest < 7.0
44 commands =
45     {[testenv]commands}
46     flake8
47
48 [gh-actions]
49 python =
50     2.7: py27
51     3.5: py35
52     3.6: py36
53     3.7: py37
54     3.8: py38
55     3.9: py39
56     3.10: py310