Skip to content
Snippets Groups Projects
Commit ac63a692 authored by Neda Moeini's avatar Neda Moeini
Browse files

Fixed pipeline problem.

parent 380c3bed
No related branches found
No related tags found
No related merge requests found
Pipeline #83871 failed
...@@ -14,16 +14,15 @@ run-tox-pipeline: ...@@ -14,16 +14,15 @@ run-tox-pipeline:
image: python:3.10 image: python:3.10
services: services:
- name: postgres:15.4 - postgres:15.4
alias: postgres
# Change pip's cache directory to be inside the project directory since we can # Change pip's cache directory to be inside the project directory since we can
# only cache local items. # only cache local items.
variables: variables:
POSTGRES_DB: postgres POSTGRES_DB: nwa-workflows-test
POSTGRES_USER: nwa POSTGRES_USER: nwa
POSTGRES_PASSWORD: nwa POSTGRES_PASSWORD: nwa
DATABASE_URI_TEST: 'postgresql://nwa:nwa@postgres:5432/postgres' $DATABASE_URI_TEST: 'postgresql://nwa:nwa@postgres:5432/nwa-workflows-test'
PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip" PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip"
# Pip's cache doesn't store the python packages # Pip's cache doesn't store the python packages
...@@ -41,6 +40,7 @@ run-tox-pipeline: ...@@ -41,6 +40,7 @@ run-tox-pipeline:
- . venv/bin/activate - . venv/bin/activate
script: script:
- export DATABASE_URI_TEST=$DATABASE_URI_TEST
- pip install tox - pip install tox
- tox - tox
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment