Skip to content

Commit 46773a3

Browse files
snopokeclaude
andcommitted
ci: add postgres service for procrastinate integration tests
The integration_tests.yml workflow only provisioned Redis (for Celery), so the procrastinate tests added in #46 failed on every push to main with `psycopg_pool.PoolTimeout`. Adds a postgres:16 service container matching the DSN the tests default to, and sets PROCRASTINATE_DSN explicitly so the test config is self-documenting. Also picks up the uv.lock entry for taskbadger 2.1.0a1 that should have ridden along with #47. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 9e97585 commit 46773a3

2 files changed

Lines changed: 15 additions & 1 deletion

File tree

.github/workflows/integration_tests.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,19 @@ jobs:
1717
--health-retries 5
1818
ports:
1919
- 6379:6379
20+
postgres:
21+
image: postgres:16
22+
env:
23+
POSTGRES_USER: postgres
24+
POSTGRES_PASSWORD: postgres
25+
POSTGRES_DB: procrastinate
26+
options: >-
27+
--health-cmd "pg_isready -U postgres"
28+
--health-interval 10s
29+
--health-timeout 5s
30+
--health-retries 5
31+
ports:
32+
- 5432:5432
2033
steps:
2134
- uses: actions/checkout@v6
2235
- name: Set up Python
@@ -36,3 +49,4 @@ jobs:
3649
TASKBADGER_ORG: ${{ vars.TASKBADGER_ORG }}
3750
TASKBADGER_PROJECT: ${{ vars.TASKBADGER_PROJECT }}
3851
TASKBADGER_API_KEY: ${{ secrets.TASKBADGER_API_KEY }}
52+
PROCRASTINATE_DSN: postgresql://postgres:postgres@localhost:5432/procrastinate

uv.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)