Skip to content
Snippets Groups Projects
Commit 0a383889 authored by Bryan BRANCOTTE's avatar Bryan BRANCOTTE
Browse files

add postgres service

parent e8c54cfe
Branches
Tags
No related merge requests found
image: docker:latest image: docker:latest
variables:
POSTGRES_HOST: "db-local"
POSTGRES_DBNAME: "postgres"
POSTGRES_USER: "postgres"
POSTGRES_PASSWORD: "test"
stages: stages:
- test - test
test-style: test-style:
stage: test stage: test
needs: [] image: python:3.9
script: script:
- pip install -q -r requirements-test.txt - pip install -q -r requirements-test.txt
- black ./autocomplete_multi_models/ --check --diff --config ./pyproject.toml - black ./autocomplete_multi_models/ --check --diff --config ./pyproject.toml
...@@ -13,6 +19,9 @@ test-style: ...@@ -13,6 +19,9 @@ test-style:
test: test:
stage: test stage: test
image: python:3.9 image: python:3.9
services:
- name: postgres:14
alias: "db-local"
script: script:
- pip3 install -r requirements.txt -r requirements-test.txt - pip install -r requirements.txt -r requirements-test.txt
- coverage report --skip-covered --omit=*/wsgi.py,*/asgi.py,manage.py,*/apps.py,setup.py - coverage report --skip-covered --omit=*/wsgi.py,*/asgi.py,manage.py,*/apps.py,setup.py
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment