You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: configure PostgreSQL for CI tests and move psycopg to main dependencies
Changes:
- Add PostgreSQL 17 service to GitHub Actions workflow
- Configure tests to use PostgreSQL in CI (via DATABASE_URL) while keeping SQLite for local development
- Move psycopg[binary] from production.in to main.in since django.contrib.postgres is now in base INSTALLED_APPS
- Update workflow to install production.txt dependencies
- Recompile all requirements files
This fixes the test failure where django.contrib.postgres required psycopg to be installed
but it was only available in production dependencies, not in the CI test environment.
The conditional database configuration in tests.py allows:
- CI: Uses PostgreSQL (matching production environment)
- Local dev: Uses SQLite (simpler setup without PostgreSQL requirement)
Fixes the Django 6.0 compatibility issue from the previous commit.
0 commit comments