Uebernimm Enum-Listen und Filtergruppen in die Taxonomie, speichere Suchtreffer als Kandidaten und lasse CI das vorhandene API-Image nutzen.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
2117ca6b54
commit
68a8e3d945
23 files changed
+481
-118
No files matched your search
+16
-20
@@ -41,24 +41,20 @@ docker compose -f "$COMPOSE_FILE" exec -T postgres \
|
||||
psql -U "$PGUSER" -d postgres -v ON_ERROR_STOP=1 \
|
||||
-c "CREATE DATABASE buyingagent_test OWNER ${PGUSER};"
|
||||
|
||||
docker compose -f "$COMPOSE_FILE" --profile test build --pull=false api-test
|
||||
# Reuse the already-deployed api image. A fresh api-test build hits ghcr.io
|
||||
# metadata even with --pull=false and fails on IPv6 DNS timeouts.
|
||||
run_test() {
|
||||
docker compose -f "$COMPOSE_FILE" run --rm --no-deps --entrypoint "" \
|
||||
-v "${APP_DIR}:/src:ro" \
|
||||
-w /src/backend \
|
||||
-e PYTHONPATH=/src/backend \
|
||||
-e DB_NAME=buyingagent_test \
|
||||
-e ENVIRONMENT=test \
|
||||
-e ENGINE_BUILD=test \
|
||||
-e CLOCK_NOW=2026-10-03T12:00:00Z \
|
||||
-e GEIZHALS_USE_FIXTURES=1 \
|
||||
api "$@"
|
||||
}
|
||||
|
||||
docker compose -f "$COMPOSE_FILE" --profile test run --rm --no-deps \
|
||||
-v "${APP_DIR}:/src:ro" \
|
||||
-w /src/backend \
|
||||
-e PYTHONPATH=/src/backend \
|
||||
-e DB_NAME=buyingagent_test \
|
||||
-e ENVIRONMENT=test \
|
||||
-e ENGINE_BUILD=test \
|
||||
-e CLOCK_NOW=2026-10-03T12:00:00Z \
|
||||
api-test /app/.venv/bin/alembic upgrade head
|
||||
|
||||
docker compose -f "$COMPOSE_FILE" --profile test run --rm --no-deps \
|
||||
-v "${APP_DIR}:/src:ro" \
|
||||
-w /src/backend \
|
||||
-e PYTHONPATH=/src/backend \
|
||||
-e DB_NAME=buyingagent_test \
|
||||
-e ENVIRONMENT=test \
|
||||
-e ENGINE_BUILD=test \
|
||||
-e CLOCK_NOW=2026-10-03T12:00:00Z \
|
||||
api-test /app/.venv/bin/pytest tests -m "not slow" -ra --tb=short
|
||||
run_test /app/.venv/bin/alembic upgrade head
|
||||
run_test /app/.venv/bin/pytest tests -m "not slow" -ra --tb=short
|
||||
Reference in new issue
Block a user