fix(ci): install Compose for ingress configuration checks
CI and Deploy / test (push) Failing after 42s
CI and Deploy / deploy (push) Has been skipped

This commit is contained in:
cesnimda
2026-09-09 18:29:13 +02:00
parent 1bbbd05ed5
commit f485f7291b
3 changed files with 23 additions and 3 deletions
+4 -1
View File
@@ -4,6 +4,7 @@ import importlib.util
import json
import os
from pathlib import Path
import shutil
import subprocess
import tempfile
import unittest
@@ -24,7 +25,9 @@ class IngressConfigTests(unittest.TestCase):
file.write("# No repository secrets are read by this fixture.\n")
path = file.name
try:
base = ["docker", "compose", "--env-file", path, "-f", "docker-compose.yml"]
# docker/setup-compose-action supplies `compose` on runners without Docker.
command = ["docker", "compose"] if shutil.which("docker") else [shutil.which("compose") or "docker-compose"]
base = command + ["--env-file", path, "-f", "docker-compose.yml"]
def render(extra):
result = subprocess.run(base + extra + ["--profile", "bundled-ollama", "config", "--format", "json"],
cwd=ROOT, env=env, capture_output=True, text=True, timeout=30, check=True)