-
Notifications
You must be signed in to change notification settings - Fork 58
/
tox.ini
48 lines (41 loc) · 952 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
[tox]
requires =
tox>=4
env_list = clean, core38, core310, transformers, report
[gh-actions]
python =
3.8: clean, core38, transformers
3.10: core310
[testenv]
commands = pytest --cov --cov-append --cov-report xml
deps =
pytest
pytest-cov
google-auth-oauthlib
google-api-python-client
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:report]
deps = coverage[toml]
skip_install = true
commands =
-coverage combine
-coverage report
-coverage html
-coverage xml