forked from ROCm/Tensile
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
60 lines (50 loc) · 1.73 KB
/
tox.ini
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
[tox]
envlist = {py35,py36,py38,py27}{,-win},lint
[testenv]
platform = linux
# Some versions of Pytest versions have a bug:
# https://github.com/pytest-dev/pytest/issues/5971 which causes the whole test
# process to crash if a multiprocessing job has an exception. Fixed in 5.3.3.
deps =
-r{toxinidir}/requirements.txt
pytest>=5.4.1
pytest-xdist>=1.32.0
filelock
commands =
python3 ./Tensile/bin/Tensile Tensile/Configs/build_client.yaml {envdir}/client
py.test -v --basetemp={envtmpdir} --junit-xml={toxinidir}/python_tests.xml --junit-prefix={envname} --color=yes -n 4 --prebuilt-client={envdir}/client/0_Build/client/tensile_client {posargs}
[testenv:{py35,py36,py38,py27}-win]
platform = win32
passenv = *
deps =
-r{toxinidir}/requirements.txt
pytest>=5.4.1
pytest-xdist>=1.32.0
filelock
commands =
python ./Tensile/bin/Tensile Tensile/Configs/build_client.yaml {envdir}/client
py.test -v --basetemp={envtmpdir} --junit-xml={toxinidir}/python_tests.xml --junit-prefix={envname} --color=yes -n 4 --prebuilt-client={envdir}/client/0_Build/client/tensile_client {posargs}
[testenv:lint]
basepython = python3
deps =
-r{toxinidir}/requirements.txt
flake8
commands = flake8 {toxinidir}/Tensile
[testenv:pre_commit]
basepython = python3
deps =
-r{toxinidir}/requirements.txt
pytest>=5.4.1
flake8
commands =
flake8 {toxinidir}/Tensile
py.test -q --basetemp={envtmpdir} --color=yes {toxinidir}/Tensile -m unit {posargs}
[flake8]
exclude = .git,build*,dist,.cache,*~
max-line-length = 132
ignore =
# All E class violations are errors reported by pycodestyle
E,
# All W class violations are warnings reported by pycodestyle
W
# This mostly just leaves pyflakes errors.