From c00a954266caf69cf0b3dd90673b88346963a2c5 Mon Sep 17 00:00:00 2001 From: me Date: Tue, 5 May 2026 19:17:36 +0530 Subject: [PATCH] refactor: merge environment setup and test steps in CI workflow --- .github/workflows/ci.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3a99c6e..e3d43db 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -88,13 +88,15 @@ jobs: name: ssl-certs path: certs/ - - name: Setup Environment + - name: Setup & Test run: | cp ../.env.example ../.env uv sync + export DB_NAME="piku__test" export DB_USER="test" export DB_PASSWORD="password123" + if [ "$GITEA_ACTIONS" = "true" ]; then export DB_HOST="db" export DB_PORT="5432" @@ -103,8 +105,6 @@ jobs: export DB_PORT="5442" fi - - name: Lint & Test - run: | uv run ruff check uv run python manage.py test