From f8adbb799c79ee24f4b96f9d70f862ed9244560a Mon Sep 17 00:00:00 2001 From: b_crocker Date: Fri, 17 Sep 2021 14:01:11 -0400 Subject: [PATCH] Setup for GitHub testing --- CodeReview/settings.py | 22 +++++++++++++++++----- 1 file changed, 17 insertions(+), 5 deletions(-) diff --git a/CodeReview/settings.py b/CodeReview/settings.py index a10d820..9eaa1c6 100644 --- a/CodeReview/settings.py +++ b/CodeReview/settings.py @@ -58,12 +58,24 @@ TEMPLATES = [ WSGI_APPLICATION = 'CodeReview.wsgi.application' -DATABASES = { - 'default': { - 'ENGINE': 'django.db.backends.sqlite3', - 'NAME': BASE_DIR / 'db.sqlite3', +if STAGE == "GH_TEST": + DATABASES = { + 'default': { + 'ENGINE': 'django.db.backends.postgresql', + 'NAME': 'github_actions', + 'USER': 'postgres', + 'PASSWORD': 'postgres', + 'HOST': '127.0.0.1', + 'PORT': '5432', + } + } +else: + DATABASES = { + 'default': { + 'ENGINE': 'django.db.backends.sqlite3', + 'NAME': BASE_DIR / 'db.sqlite3', + } } -} AUTH_PASSWORD_VALIDATORS = [ { -- knotmirror 0.0.1