feat: complete production workflow migration

This commit is contained in:
2026-08-06 14:29:57 +08:00
parent 7f215e79c4
commit 8df5266abb
448 changed files with 56937 additions and 14619 deletions
+7 -13
View File
@@ -4,16 +4,16 @@ from pathlib import Path
import pytest
from gyxx_flow.modules.content_marketing.runtime import runtime_paths
from gyxx_flow.modules.content_marketing import runtime_paths
PROJECT_ROOT = Path(__file__).resolve().parents[1]
RUNTIME_ROOT = (
PROJECT_ROOT / "src" / "gyxx_flow" / "modules" / "content_marketing" / "runtime"
MODULE_ROOT = (
PROJECT_ROOT / "src" / "gyxx_flow" / "modules" / "content_marketing"
)
def _source(relative: str) -> str:
return (RUNTIME_ROOT / relative).read_text(encoding="utf-8-sig")
return (MODULE_ROOT / relative).read_text(encoding="utf-8-sig")
def test_content_output_resolver_keeps_paths_inside_the_selected_layer(
@@ -93,14 +93,9 @@ def test_transient_content_artifacts_use_tmp_root() -> None:
assert 'chart_path.with_name(f"{chart_path.stem}_feishu.png")' not in report_card
def test_batch_launchers_never_fall_back_to_module_local_var() -> None:
for path in sorted((RUNTIME_ROOT / "data" / "tools").glob("*.bat")):
source = path.read_text(encoding="utf-8-sig")
if "GYXX_DATA_ROOT" not in source:
continue
assert '%PROJECT_DIR%\\var' not in source, path.name
assert '%GYXX_PROJECT_ROOT%\\var' in source, path.name
assert "if not defined GYXX_PROJECT_ROOT" in source, path.name
def test_content_module_does_not_ship_windows_launchers() -> None:
assert list(MODULE_ROOT.rglob("*.bat")) == []
assert list(MODULE_ROOT.rglob("*.ps1")) == []
@pytest.mark.parametrize(
@@ -119,4 +114,3 @@ def test_cli_output_overrides_are_constrained_to_a_data_layer(
assert "resolve_layer_output(" in source
assert layer_expression in source