Skip to content

Commit

Permalink
Updating django.yml and settings.py to
Browse files Browse the repository at this point in the history
use django CI
  • Loading branch information
frasanz committed Sep 27, 2024
1 parent 192f70f commit 1f1db50
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 6 deletions.
18 changes: 14 additions & 4 deletions .github/workflows/django.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,20 @@ on:
jobs:
build:
runs-on: ubuntu-latest
strategy:
max-parallel: 4
matrix:
python-version: [3.8, 3.9]
services:
postgres:
image: postgres:13
env:
POSTGRES_USER: gdalface
POSTGRES_PASSWORD: gdalface
POSTGRES_DB: gdalface
ports:
- 5432:5432
options: >
--health-cmd "pg_isready -U postgres"
--health-interval 10s
--health-timeout 5s
--health-retries 5
steps:
- uses: actions/checkout@v4
Expand Down
4 changes: 2 additions & 2 deletions gdalface/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,8 @@
'default': {
'ENGINE': 'django.db.backends.postgresql',
'NAME': config('DB_NAME', default='gdalface'),
'USER': config('DB_USER'),
'PASSWORD': config('DB_PASSWORD'),
'USER': config('DB_USER', default='gdalface'),
'PASSWORD': config('DB_PASSWORD', default='gdalface'),
'HOST': config('DB_HOST', default='localhost'),
'PORT': config('DB_PORT', default='5432'),
}
Expand Down

0 comments on commit 1f1db50

Please sign in to comment.