[claude] Mark setup script tests as skip_ci (#931) (#1151)
Some checks failed
Tests / lint (push) Has been cancelled
Tests / test (push) Has been cancelled

This commit was merged in pull request #1151.
This commit is contained in:
2026-03-23 18:49:58 +00:00
parent 0e5948632d
commit 8421537a55
2 changed files with 10 additions and 4 deletions

View File

@@ -51,6 +51,9 @@ def pytest_collection_modifyitems(config, items):
item.add_marker(pytest.mark.docker) item.add_marker(pytest.mark.docker)
item.add_marker(pytest.mark.skip_ci) item.add_marker(pytest.mark.skip_ci)
if "setup_prod" in test_path or "setup_script" in test_path:
item.add_marker(pytest.mark.skip_ci)
if "ollama" in test_path or "test_ollama" in item.name: if "ollama" in test_path or "test_ollama" in item.name:
item.add_marker(pytest.mark.ollama) item.add_marker(pytest.mark.ollama)

View File

@@ -11,10 +11,13 @@ PROD_PROJECT_DIR = Path("/home/ubuntu/prod-sovereign-stack")
PROD_VAULT_DIR = PROD_PROJECT_DIR / "TimmyVault" PROD_VAULT_DIR = PROD_PROJECT_DIR / "TimmyVault"
SETUP_SCRIPT_PATH = Path("/home/ubuntu/setup_timmy.sh") SETUP_SCRIPT_PATH = Path("/home/ubuntu/setup_timmy.sh")
pytestmark = pytest.mark.skipif( pytestmark = [
not SETUP_SCRIPT_PATH.exists(), pytest.mark.skip_ci,
reason=f"Setup script not found at {SETUP_SCRIPT_PATH}", pytest.mark.skipif(
) not SETUP_SCRIPT_PATH.exists(),
reason=f"Setup script not found at {SETUP_SCRIPT_PATH}",
),
]
@pytest.fixture(scope="module", autouse=True) @pytest.fixture(scope="module", autouse=True)