]> git.phdru.name Git - m_librarian.git/blob - tox.ini
CI(GHActions): Python 3.10
[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 deps =
20     -rdevscripts/requirements/requirements_tests.txt
21 passenv = CI DISTUTILS_USE_SDK MSSdk INCLUDE LIB WINDIR
22 platform = linux|darwin
23
24 [testenv:{py27,py34,py35,py36,py37,py38,py39,py310}-sqlite]
25 commands =
26     {[testenv]commands}
27     -rm.py -f /tmp/test.sqdb
28     {envpython} -m pytest -D sqlite:///tmp/test.sqdb
29
30 [testenv:{py27,py34,py35,py36,py37,py38,py39,py310}-sqlite-w32]
31 platform = win32
32 commands =
33     {[testenv]commands}
34     -rm.py -f {env:TEMP}/test.sqdb
35     pytest -D sqlite:/{env:TEMP}/test.sqdb?debug=1
36     rm.py -f {env:TEMP}/test.sqdb
37
38 # flake8
39 [testenv:{py27,py34,py35,py36,py37,py38,py39,py310}-flake8]
40 deps =
41     flake8
42 commands =
43     {[testenv]commands}
44     flake8
45
46 [gh-actions]
47 python =
48     2.7: py27
49     3.5: py35
50     3.6: py36
51     3.7: py37
52     3.8: py38
53     3.9: py39
54     3.10: py310