forked from canonical/training-operator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
31 lines (25 loc) · 753 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
# Copyright 2021 Canonical Ltd.
# See LICENSE file for licensing details.
[flake8]
max-line-length = 100
[tox]
skipsdist = True
envlist = lint,unit,integration
[testenv]
setenv =
PYTHONPATH={toxinidir}:{toxinidir}/src
PYTHONBREAKPOINT=ipdb.set_trace
deps =
-r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
[testenv:unit]
commands = pytest -vvs --cov=. --cov-report html:training-operator-cov_html {toxinidir}/tests/unit {posargs}
[testenv:integration]
deps =
{[testenv]deps}
pytest-operator
commands = pytest -vvs --log-cli-level=INFO {toxinidir}/tests/integration {posargs}
[testenv:lint]
commands =
flake8 {toxinidir}/tests {toxinidir}/src
black --check --diff {toxinidir}/tests {toxinidir}/src