Skip to content

Commit e28ea40

Browse files
committed
fix backend CI
1 parent 448e823 commit e28ea40

2 files changed

Lines changed: 5 additions & 7 deletions

File tree

.github/workflows/ci.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -117,16 +117,15 @@ jobs:
117117
github.event_name == 'workflow_dispatch'
118118
# Job-level env is evaluated before service containers start,
119119
# so these vars are available to the postgres service block below.
120-
# Values must be set as GitHub Actions Repository Variables (Settings →
121-
# Secrets and variables → Variables) to match config/.env.test.
122-
# Reference: config/.env.test — DATABASE_USER / DATABASE_PASSWORD / DATABASE_NAME / DATABASE_PORT
120+
# Using hardcoded CI-only test credentials that match the defaults in
121+
# tests/fixtures/settings.py — no secrets required for test DB access.
123122
services:
124123
postgres:
125124
image: postgres:16-alpine
126125
env:
127-
POSTGRES_USER: ${{ secrets.DATABASE_USER }}
128-
POSTGRES_PASSWORD: ${{ secrets.DATABASE_PASSWORD }}
129-
POSTGRES_DB: ${{ secrets.DATABASE_NAME }}
126+
POSTGRES_USER: postgres
127+
POSTGRES_PASSWORD: postgres
128+
POSTGRES_DB: test_myproject
130129
options: >-
131130
--health-cmd pg_isready
132131
--health-interval 10s

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,6 @@ temp/
181181
# ============================================================================
182182
.git/
183183
.gitkeep
184-
.env.test
185184
poetry.lock.local
186185
package-lock.json.local
187186

0 commit comments

Comments
 (0)