Added test stage

This commit is contained in:
Viswamedha Nalabotu 2025-12-20 21:00:05 +00:00
parent 03490762be
commit 143e1bc570

View file

@ -1,6 +1,18 @@
stages:
- test
- build
run_tests:
stage: test
image: python:3.12
before_script:
- python -m pip install --upgrade pip
- pip install --no-cache-dir -r requirements/base.txt
script:
- python manage.py test --verbosity=2
rules:
- if: $CI_COMMIT_BRANCH == "main"
build_and_push:
stage: build
image: docker:24.0.7