forked from openvinotoolkit/anomalib
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
52 lines (49 loc) · 1.24 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
[tox]
isolated_build = True
skip_missing_interpreters = true
envlist =
pre-commit
pre_merge
nightly
[testenv:pre-commit]
basepython = python3
deps = pre-commit
commands = pre-commit run --all-files
[testenv:pre_merge]
basepython = python3
passenv = ftp_proxy
HTTP_PROXY
HTTPS_PROXY
CUDA_VISIBLE_DEVICES
ANOMALIB_DATASET_PATH
deps =
coverage[toml]
pytest
flaky
-r{toxinidir}/requirements/base.txt
-r{toxinidir}/requirements/openvino.txt
commands =
coverage erase
coverage run --include=anomalib/* -m pytest tests/pre_merge/ -ra --showlocals
; https://github.com/openvinotoolkit/anomalib/issues/94
coverage report -m --fail-under=85
coverage xml -o {toxworkdir}/coverage.xml
[testenv:nightly]
basepython = python3
passenv = ftp_proxy
HTTP_PROXY
HTTPS_PROXY
CUDA_VISIBLE_DEVICES
ANOMALIB_DATASET_PATH
deps =
coverage
pytest
flaky
-r{toxinidir}/requirements/base.txt
-r{toxinidir}/requirements/openvino.txt
commands =
coverage erase
coverage run --include=anomalib/* -m pytest tests/nightly/ -ra --showlocals
; https://github.com/openvinotoolkit/anomalib/issues/94
coverage report -m --fail-under=33
coverage xml -o {toxworkdir}/coverage.xml