Added test stage
This commit is contained in:
parent
03490762be
commit
143e1bc570
1 changed files with 14 additions and 2 deletions
|
|
@ -1,6 +1,18 @@
|
||||||
stages:
|
stages:
|
||||||
|
- test
|
||||||
- build
|
- 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:
|
build_and_push:
|
||||||
stage: build
|
stage: build
|
||||||
image: docker:24.0.7
|
image: docker:24.0.7
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue