diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 3fe3e2f8..cc471ba3 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -28,6 +28,12 @@ jobs: env: DATABASE_URL: postgresql+asyncpg://postgres:postgres@postgres:5432/resolutionflow_test DATABASE_URL_SYNC: postgresql://postgres:postgres@postgres:5432/resolutionflow_test + # conftest.py reads DATABASE_TEST_URL only (DATABASE_URL is intentionally + # not consulted after the dab740d test-isolation hardening). The CI test + # DB is the same postgres service, so point DATABASE_TEST_URL at it + # explicitly — without this, conftest falls back to localhost:5432 and + # all tests fail at fixture setup with "connection refused". + DATABASE_TEST_URL: postgresql+asyncpg://postgres:postgres@postgres:5432/resolutionflow_test SECRET_KEY: ci-test-secret-key-not-for-production DEBUG: "true" APP_NAME: ResolutionFlow @@ -88,7 +94,7 @@ jobs: run: cd frontend && NODE_OPTIONS="--max-old-space-size=4096" npm run build - name: Upload build artifact - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@v3 with: name: frontend-dist path: frontend/dist @@ -132,7 +138,7 @@ jobs: run: cd frontend && npm ci - name: Download frontend build - uses: actions/download-artifact@v4 + uses: actions/download-artifact@v3 with: name: frontend-dist path: frontend/dist @@ -145,7 +151,7 @@ jobs: - name: Upload Playwright report if: always() - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@v3 with: name: playwright-report path: |