From e59997e20855e2dda0e95fdda26c46ea25b99ec8 Mon Sep 17 00:00:00 2001 From: Lars Date: Sat, 3 Oct 2026 11:25:26 +0200 Subject: [PATCH] Rufe pytest und Alembic im Test-Container mit festem venv-Pfad auf. Co-authored-by: Cursor --- .gitea/workflows/test.yml | 2 +- docker-compose.test.yml | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.gitea/workflows/test.yml b/.gitea/workflows/test.yml index 22f771e..c1c012c 100644 --- a/.gitea/workflows/test.yml +++ b/.gitea/workflows/test.yml @@ -53,7 +53,7 @@ jobs: -e ENVIRONMENT=test \ -e ENGINE_BUILD=test \ api-test \ - sh -lc 'set -e; alembic upgrade head; pytest tests -m "not slow" -ra --tb=short' + /bin/sh -c '/app/.venv/bin/alembic upgrade head && /app/.venv/bin/pytest tests -m "not slow" -ra --tb=short --cache-dir=/tmp/pytest-cache' smoke-dev: if: ${{ github.event_name != 'workflow_run' || github.event.workflow_run.conclusion == 'success' }} diff --git a/docker-compose.test.yml b/docker-compose.test.yml index 6897a3b..e9a6333 100644 --- a/docker-compose.test.yml +++ b/docker-compose.test.yml @@ -38,9 +38,9 @@ services: condition: service_healthy command: [ - "sh", - "-lc", - "alembic upgrade head && pytest tests -m 'not slow' -ra --tb=short", + "/bin/sh", + "-c", + "/app/.venv/bin/alembic upgrade head && /app/.venv/bin/pytest tests -m 'not slow' -ra --tb=short --cache-dir=/tmp/pytest-cache", ] networks: - buyingagent-test-network