fix(ci): install Compose for ingress configuration checks
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user