-
Notifications
You must be signed in to change notification settings - Fork 17
/
tox.ini
91 lines (81 loc) · 1.86 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
[tox]
env_list =
clean
pre-commit
test-build-helper
tests
[coverage:run]
omit =
ComfyUI/*
*/nodes/*
*/config.py
*/config-3.py
disable_warnings =
couldnt-parse
[coverage:paths]
source =
hordelib/
[coverage:report]
omit =
ComfyUI/*
*/nodes/*
*/config.py
*/config-3.py
ignore_errors = True
skip_empty = True
[testenv]
description = base evironment
passenv =
HORDELIB_TESTING
AIWORKER_CACHE_HOME
TESTS_ONGOING
[testenv:clean]
deps = coverage
commands = coverage erase
[testenv:pre-commit]
skip_install = true
deps = pre-commit
commands = pre-commit run --all-files --show-diff-on-failure
[testenv:test-build-helper]
description = test build_helper.py under the same conditions as the github release workflow
skip_install = false
deps =
pytest>=7
build
loguru
typing-extensions
psutil
strenum
python-dotenv
# NOTE: If you are here because this test fails,
# - include the imports missing (check the exception thrown) here
# - **and** in the appropriate place in `release.yaml`.
#
# See also `build_helper.py`, and `.github/workflows/release.yaml` for more context.
passenv =
HORDELIB_TESTING
AIWORKER_CACHE_HOME
TESTS_ONGOING
commands =
python -c "import build_helper"
[testenv:tests]
description = install pytest in a virtual environment and invoke it on the tests folder
skip_install = false
install_command = pip install {opts} {packages}
passenv =
HORDELIB_TESTING
AIWORKER_CACHE_HOME
TESTS_ONGOING
HORDELIB_SKIP_SIMILARITY_FAIL
HORDELIB_CUSTOM_MODELS
CIVIT_API_TOKEN
HORDE_MODEL_REFERENCE_GITHUB_BRANCH
deps =
pytest>=7
pytest-sugar
pytest-cov
requests
-r requirements.txt
commands =
pytest -x tests/meta/ -k test_no_initialise_comfy_horde
pytest -x tests {posargs} --cov --ignore=tests/meta --durations=20