-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathtox.ini
50 lines (43 loc) · 897 Bytes
/
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
# Copyright (c) 2021 LG Electronics
# SPDX-License-Identifier: Apache-2.0
[tox]
envlist = test_run
skipdist = true
[testenv]
install_command = pip install {opts} {packages}
allowlist_externals = cat
ls
pytest
setenv =
PYTHONPATH=.
[flake8]
max-line-length = 130
exclude = .tox/*
[pytest]
filterwarnings = ignore::DeprecationWarning
norecursedirs = test_result/* tests/legacy
[testenv:test_run]
deps =
-r{toxinidir}/requirements-dev.txt
wheel = true
# move to tests dir
changedir = {tox_root}/tests
commands =
# Test - run pytest
pytest
[testenv:release]
deps =
-r{toxinidir}/requirements-dev.txt
wheel = true
# move to tests dir
changedir = {tox_root}/tests
commands =
# Test - run pytest
pytest
[testenv:release_flake8]
deps =
-r{toxinidir}/requirements-dev.txt
wheel = true
commands =
# Test - check PEP8
pytest -v --flake8