Fix GitHub Actions test dependencies

This commit is contained in:
ukr8b3g-cmyk
2026-08-25 00:54:38 +09:00
parent 3b7fcd5cdf
commit 0ba238fa3e
5 changed files with 38 additions and 4 deletions
+18
View File
@@ -1,5 +1,8 @@
from __future__ import annotations
import sys
import types
import pytest
import torch
@@ -15,6 +18,21 @@ from ComfyUI_H3_Continuum_Join.v3.hires_fix_nodes import (
from ComfyUI_H3_Continuum_Join.v3.second_pass import SecondPassContractError
@pytest.fixture(autouse=True)
def _stub_core_h3_canvas_module(monkeypatch):
comfy_extras = types.ModuleType("comfy_extras")
comfy_extras.__path__ = []
nodes_minimax_h3 = types.ModuleType("comfy_extras.nodes_minimax_h3")
nodes_minimax_h3.CANVAS_MULTIPLE = 32
comfy_extras.nodes_minimax_h3 = nodes_minimax_h3
monkeypatch.setitem(sys.modules, "comfy_extras", comfy_extras)
monkeypatch.setitem(
sys.modules,
"comfy_extras.nodes_minimax_h3",
nodes_minimax_h3,
)
def _video(marker: str, *, height: int = 4, width: int = 4) -> dict:
return {
"samples": torch.zeros((1, 24, 3, height, width)),