Skip to content

Commit

Permalink
Fix postgres setup for CI
Browse files Browse the repository at this point in the history
  • Loading branch information
amakarudze committed Jun 17, 2024
1 parent 4148299 commit 025e5bd
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
13 changes: 8 additions & 5 deletions .github/workflows/django.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,19 @@ jobs:

services:
postgres:
image: postgres:10.8
image: postgres
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: djangocon_africa
POSTGRES_HOST: localhost
ports:
- 5432:5432
POSTGRES_HOST: postgres
POSTGRES_PORT: 5432
# needed because the postgres container does not provide a healthcheck
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
strategy:
max-parallel: 4
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -171,3 +171,5 @@ cython_debug/
.idea/
*.pyc
*.log

.ruff_cache/

0 comments on commit 025e5bd

Please sign in to comment.