From d075973a081385d4688ab44b8a2e23b2c7bde04c Mon Sep 17 00:00:00 2001 From: Benjamin Boenisch Date: Sun, 15 Feb 2026 13:15:13 +0100 Subject: [PATCH] fix: geo-service und agent-core Test-Imports in Pipeline --- .woodpecker/main.yml | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/.woodpecker/main.yml b/.woodpecker/main.yml index c065736..92da86c 100644 --- a/.woodpecker/main.yml +++ b/.woodpecker/main.yml @@ -303,8 +303,8 @@ steps: cd geo-service export PYTHONPATH="$(pwd):${PYTHONPATH:-}" - pip install --quiet --no-cache-dir -r requirements.txt 2>/dev/null || pip install --quiet --no-cache-dir fastapi uvicorn pytest pytest-json-report - pip install --quiet --no-cache-dir pytest-json-report + pip install --quiet --no-cache-dir -r requirements.txt 2>/dev/null || true + pip install --quiet --no-cache-dir structlog httpx fastapi uvicorn pydantic pytest pytest-json-report set +e python -m pytest tests/ -v --tb=short --json-report --json-report-file=../.ci-results/test-geo.json @@ -340,10 +340,14 @@ steps: exit 0 fi - cd agent-core + # Symlink erstellen damit 'import agent_core' funktioniert + # (Verzeichnis heisst agent-core mit Bindestrich, Python braucht Unterstrich) + ln -sf agent-core agent_core export PYTHONPATH="$(pwd):${PYTHONPATH:-}" - pip install --quiet --no-cache-dir -r requirements.txt 2>/dev/null || pip install --quiet --no-cache-dir pytest pytest-asyncio pytest-json-report - pip install --quiet --no-cache-dir pytest-json-report + + cd agent-core + pip install --quiet --no-cache-dir -r requirements.txt 2>/dev/null || true + pip install --quiet --no-cache-dir pytest pytest-asyncio pytest-cov pytest-json-report set +e python -m pytest tests/ -v --tb=short --json-report --json-report-file=../.ci-results/test-agent-core.json