From 570c2cba97f8c96248b6c3e13091cff8eb848192 Mon Sep 17 00:00:00 2001 From: Tanya Date: Wed, 7 Jan 2026 13:51:37 -0500 Subject: [PATCH] chore: Update CI workflow to initialize both main and auth database schemas This commit modifies the CI workflow to include a step for initializing both the main and authentication database schemas, ensuring that the necessary database structure is in place before running tests. This enhancement contributes to a more robust CI process and improves the overall development workflow. --- .gitea/workflows/ci.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 66b07aa..d915797 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -196,7 +196,8 @@ jobs: run: | export PYTHONPATH=$(pwd) python -c "from backend.db.models import Base; from backend.db.session import engine; Base.metadata.create_all(bind=engine)" - echo "✅ Database schema initialized" + python -c "from backend.worker import setup_auth_database_tables; setup_auth_database_tables()" + echo "✅ Database schemas initialized (main and auth)" - name: Run backend tests run: |