forked from ROCm/Tensile
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
42 lines (38 loc) · 1.3 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
[tox]
envlist = py35,py36,py27,lint
[testenv]
# 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 --cxx-compiler={env:TENSILE_COMPILER:hipcc} 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.