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: mysql DATABASE_HOST: mariadb DATABASE_USER: root DATABASE_PASSWORD: fdb OAUTH_ENABLED: no services: - name: mariadb:10.6 variables: MARIADB_ROOT_PASSWORD: fdb 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