Skip to content

Commit

Permalink
tests: fix tox config
Browse files Browse the repository at this point in the history
  • Loading branch information
tazlin committed Jul 21, 2024
1 parent f688c01 commit 4b22f62
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,9 @@ description = install pytest in a virtual environment and invoke it on the tests
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
Expand All @@ -81,15 +84,18 @@ deps =
-r requirements.txt
commands =
pytest -x tests/meta/ -k test_no_initialise_comfy_horde
pytest -x tests {posargs} --cov --ignore=tests/meta --durations=30 -m "not slow"
pytest -x tests {posargs} --cov --ignore=tests/meta --durations=30 -m "slow"
pytest -x tests {posargs} --cov --ignore=tests/meta --durations=30 -m 'not slow'
pytest -x tests {posargs} --cov --ignore=tests/meta --durations=30 -m 'slow'


[testenv:tests-local]
description = install pytest in a virtual environment and invoke it on the tests folder in the legacy test order
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
Expand Down

0 comments on commit 4b22f62

Please sign in to comment.