Commit 6cfe3a8
committed
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.1 parent 82ba247 commit 6cfe3a8
File tree
6 files changed
+36
-19
lines changed- .github/workflows
- pythonie/pythonie/settings
- requirements
6 files changed
+36
-19
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
8 | 23 | | |
9 | 24 | | |
| 25 | + | |
| 26 | + | |
10 | 27 | | |
11 | 28 | | |
12 | 29 | | |
| |||
16 | 33 | | |
17 | 34 | | |
18 | 35 | | |
19 | | - | |
| 36 | + | |
20 | 37 | | |
21 | 38 | | |
22 | 39 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
18 | 23 | | |
19 | | - | |
20 | 24 | | |
21 | 25 | | |
22 | 26 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
18 | 19 | | |
19 | 20 | | |
20 | 21 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
123 | 123 | | |
124 | 124 | | |
125 | 125 | | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
126 | 130 | | |
127 | 131 | | |
128 | 132 | | |
| |||
167 | 171 | | |
168 | 172 | | |
169 | 173 | | |
| 174 | + | |
170 | 175 | | |
171 | 176 | | |
172 | 177 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | | - | |
4 | | - | |
| 1 | + | |
| 2 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
0 commit comments