forked from openvinotoolkit/anomalib
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
61 lines (56 loc) · 1.51 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
61
[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
nbmake
-r{toxinidir}/requirements/base.txt
-r{toxinidir}/requirements/openvino.txt
-r{toxinidir}/requirements/extras.txt
commands =
; 1. Run Coverage First.
coverage erase
coverage run --include=anomalib/* -m pytest {posargs:tests/pre_merge/} -ra --showlocals
; https://github.com/openvinotoolkit/anomalib/issues/94
coverage report -m --fail-under=85
coverage xml -o {toxworkdir}/coverage.xml
; 2. Test Jupyter Notebooks.
; TODO: CVS-102917 - Add tests for 300_benchmarking and 400_openvino
pytest --nbmake notebooks --ignore=notebooks/300_benchmarking --ignore=notebooks/400_openvino
[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
-r{toxinidir}/requirements/extras.txt
commands =
coverage erase
coverage run --include=anomalib/* -m pytest tests/nightly/ -ra --showlocals
coverage report -m --fail-under=33
coverage xml -o {toxworkdir}/coverage.xml