-
Notifications
You must be signed in to change notification settings - Fork 58
/
tox.ini
52 lines (44 loc) · 1.06 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]
requires =
tox>=4
env_list = clean, core38, core310, transformers, gmail, report
[gh-actions]
python =
3.8: clean, core38, transformers, gmail
3.10: core310
[testenv]
commands = pytest --cov --cov-append --cov-report xml
deps =
pytest
pytest-cov
depends =
{core38,transformers}: clean
report: core38,transformers
[testenv:core38]
deps={[testenv]deps}
commands={[testenv]commands}
[testenv:core310]
deps={[testenv]deps}
commands=pytest tests
[testenv:clean]
deps = coverage[toml]
skip_install = true
commands = coverage erase
[testenv:transformers]
description = run unit tests with the transformers dependency
deps={[testenv]deps}
commands = pytest tests/huggingface --cov --cov-append --cov-report xml
extras = transformers
[testenv:gmail]
description = run unit tests with the gmail dependencies
deps={[testenv]deps}
commands = pytest tests/gmail --cov --cov-append --cov-report xml
extras = gmail
[testenv:report]
deps = coverage[toml]
skip_install = true
commands =
-coverage combine
-coverage report
-coverage html
-coverage xml