add audit step

This commit is contained in:
Aarni Halinen
2021-04-14 16:57:32 +03:00
parent 6f6dc09f01
commit ed77526f5c
+14 -1
View File
@@ -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