Only install git and libpq when needed
This commit is contained in:
parent
93ecd380f5
commit
afcadbf1ef
1 changed files with 3 additions and 2 deletions
|
@ -53,7 +53,6 @@ poetry:
|
|||
dependencies:
|
||||
- poetry
|
||||
before_script:
|
||||
- apt-get update && apt-get install --yes git libpq-dev
|
||||
- source env/bin/activate
|
||||
variables:
|
||||
SECRET_KEY: super-secret
|
||||
|
@ -65,6 +64,8 @@ test_python:
|
|||
variables:
|
||||
POSTGRES_HOST_AUTH_METHOD: trust
|
||||
DATABASE_URL: postgres://postgres@postgres/postgres
|
||||
before_script:
|
||||
- apt-get update && apt-get install --yes git libpq-dev
|
||||
script:
|
||||
- ./manage.py collectstatic --noinput --clear
|
||||
- coverage run ./manage.py test
|
||||
|
@ -119,7 +120,7 @@ gunicorn_check:
|
|||
djhtml:
|
||||
extends: .python_test_template
|
||||
script:
|
||||
- git ls-files '*.html' | xargs djhtml --check --tabwidth 2
|
||||
- find website/ -name '*.html' | xargs djhtml --check --tabwidth 2
|
||||
|
||||
npm_lint:
|
||||
image: node:18-slim
|
||||
|
|
Loading…
Reference in a new issue