From ed77526f5c0acc41624a083c0640ec78a3f2d840 Mon Sep 17 00:00:00 2001 From: Aarni Halinen Date: Wed, 14 Apr 2021 16:57:32 +0300 Subject: [PATCH] add audit step --- .gitlab-ci.yml | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 084c2e6..e934c7e 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,5 +1,6 @@ stages: - setup + - audit - lint - test - publish @@ -15,6 +16,17 @@ install: - node_modules expire_in: 1 week +audit: + image: python:3.9 + stage: audit + needs: [] + before_script: + - pip install poetry==1.1.4 + - poetry config virtualenvs.create false + - poetry install --no-interaction --no-ansi + script: + - safety check + test: image: python:3.9 stage: test @@ -27,10 +39,11 @@ test: POSTGRES_PASSWORD: postgres DATABASE_URL: "postgresql://postgres:postgres@postgres:5432/$POSTGRES_DB" DB_HOST: postgres - script: + before_script: - pip install poetry==1.1.4 - poetry config virtualenvs.create false - poetry install --no-interaction --no-ansi + script: - python manage.py migrate --noinput - python manage.py createdefaultadmin - python manage.py test