From 380c3beda9a1e5758be4254797c5c9722f025e09 Mon Sep 17 00:00:00 2001 From: Neda Moeini <neda.moeini@ga0479-nmoeini.home> Date: Tue, 22 Aug 2023 10:59:36 +0200 Subject: [PATCH] Fixed postgresql database_url in .gitlab-ci --- .gitlab-ci.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 5566ff566..a48b0c14d 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -14,7 +14,8 @@ run-tox-pipeline: image: python:3.10 services: - - postgres:latest + - name: postgres:15.4 + alias: postgres # Change pip's cache directory to be inside the project directory since we can # only cache local items. @@ -22,7 +23,7 @@ run-tox-pipeline: POSTGRES_DB: postgres POSTGRES_USER: nwa POSTGRES_PASSWORD: nwa - DATABASE_URL: 'postgresql://nwa:nwa@localhost:5432/postgres' + DATABASE_URI_TEST: 'postgresql://nwa:nwa@postgres:5432/postgres' PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip" # Pip's cache doesn't store the python packages -- GitLab