From 8e473935ebfdf9d1921137c5dcda37a549c1a05c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20H=C3=A4ttasch?= <benjamin.haettasch@fachschaft.informatik.tu-darmstadt.de> Date: Wed, 7 Dec 2022 00:25:35 +0100 Subject: [PATCH] Add static checks and migration dry-runs to CI --- .gitlab-ci.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 73637ffc..bc1288fd 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -22,6 +22,15 @@ before_script: - ./Utils/setup.sh --prod - mysql --version +check: + script: + - export PYTHONWARNINGS=all + - ./Utils/check.sh + +check-migrations: + script: + - ./manage.py makemigrations --dry-run --check + test: script: - source venv/bin/activate -- GitLab