From e9d024d22c699ef9732b7542b6b12b39a748ecdc Mon Sep 17 00:00:00 2001 From: Samuel Huang Date: Mon, 30 Sep 2024 23:40:30 -0700 Subject: [PATCH] Change settings --- .github/workflows/ci.yml | 6 ++++-- chowist/settings/test.py | 6 +++--- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 81615d8..9c5279f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -16,9 +16,11 @@ jobs: postgres: # Docker Hub image image: postgres - # Provide the password for postgres + # Provide the credentials env: - POSTGRES_PASSWORD: postgres + POSTGRES_USER: github + POSTGRES_PASSWORD: github + POSTGRES_DB: github_test # Set health checks to wait until postgres has started options: >- --health-cmd pg_isready diff --git a/chowist/settings/test.py b/chowist/settings/test.py index bedeef2..0f93a47 100644 --- a/chowist/settings/test.py +++ b/chowist/settings/test.py @@ -6,10 +6,10 @@ DATABASES = { "default": { "ENGINE": "django.db.backends.postgresql", - "NAME": "postgres", + "NAME": "github", "HOST": "127.0.0.1", "PORT": "5432", - "USERNAME": "postgres", - "PASSWORD": "postgres", + "USERNAME": "github", + "PASSWORD": "github_test", } }