fix: geo-service und agent-core Test-Imports in Pipeline
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user