Rufe pytest und Alembic im Test-Container mit festem venv-Pfad auf.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
parent
c9c0ff96fc
commit
e59997e208
|
|
@ -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' }}
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user