added gitlab ci

This commit is contained in:
Oliver Zander 2025-08-19 16:43:48 +02:00 committed by Tobias Herre
parent 858e8519bd
commit 61dcce3505
1 changed files with 21 additions and 0 deletions

21
.gitlab-ci.yml Normal file
View File

@ -0,0 +1,21 @@
stages:
- test
test:
stage: test
image: python:3.11-bookworm
variables:
DJANGO_SETTINGS_MODULE: foerderbarometer.settings
ENVIRONMENT: test
SECRET_KEY: this-is-not-a-secret-key
DATABASE_ENGINE: sqlite3
OAUTH_ENABLED: no
tags:
- docker
coverage: /(?i)total.*? (100(?:\.0+)?\%|[1-9]?\d(?:\.\d+)?\%)$/
before_script:
- pip install -r requirements.txt coverage
script:
- coverage run manage.py test --noinput
after_script:
- coverage report