From a2567a7005c4b7e85e46505606e2836ff3b3cc8b Mon Sep 17 00:00:00 2001 From: Neda Moeini <neda.moeini@GA0479-NMOEINI.local> Date: Mon, 21 Aug 2023 17:36:32 +0200 Subject: [PATCH] Added postgres service to the gitlab-ci. --- .gitlab-ci.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 6d8ff3323..57eb0d48b 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -13,9 +13,16 @@ run-tox-pipeline: - docker-executor image: python:3.10 + services: + - postgres:latest + # Change pip's cache directory to be inside the project directory since we can # only cache local items. variables: + POSTGRES_DB: postgres + POSTGRES_USER: nwa + POSTGRES_PASSWORD: nwa + DATABASE_URL: 'postgresql://nwa:nwa@postgres:5432/postgres' PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip" # Pip's cache doesn't store the python packages -- GitLab