mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-02-09 04:52:32 +08:00
Tests only run in places where torchaudio is installed
This commit is contained in:
parent
adfee7d14d
commit
b16c6b0390
@ -448,6 +448,12 @@ async def test_workflow(workflow_name: str, workflow: dict, has_gpu: bool, clien
|
|||||||
if not has_gpu:
|
if not has_gpu:
|
||||||
pytest.skip("requires gpu")
|
pytest.skip("requires gpu")
|
||||||
|
|
||||||
|
if "audio" in workflow_name:
|
||||||
|
try:
|
||||||
|
import torchaudio
|
||||||
|
except (ImportError, ModuleNotFoundError):
|
||||||
|
pytest.skip("requires torchaudio")
|
||||||
|
|
||||||
prompt = Prompt.validate(workflow)
|
prompt = Prompt.validate(workflow)
|
||||||
add_known_models("loras", KNOWN_LORAS, CivitFile(13941, 16576, "epi_noiseoffset2.safetensors"))
|
add_known_models("loras", KNOWN_LORAS, CivitFile(13941, 16576, "epi_noiseoffset2.safetensors"))
|
||||||
# todo: add all the models we want to test a bit more elegantly
|
# todo: add all the models we want to test a bit more elegantly
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user