ci: add dedicated test stage
This commit is contained in:
1 parent
532b4c7710
commit
9022d3b06a
5 files changed
+35
-21
No files matched your search
@@ -1,4 +1,5 @@
|
||||
stages:
|
||||
- test
|
||||
- build
|
||||
- deploy
|
||||
|
||||
@@ -11,6 +12,15 @@ variables:
|
||||
DOCKER_TLS_CERTDIR: ""
|
||||
DOCKER_DRIVER: overlay2
|
||||
|
||||
test:
|
||||
stage: test
|
||||
image: python:3.12-slim
|
||||
before_script:
|
||||
- pip install --no-cache-dir -r requirements.txt
|
||||
script:
|
||||
- python -m compileall -q app tests
|
||||
- python -m unittest discover -s tests -q
|
||||
|
||||
build:
|
||||
stage: build
|
||||
tags:
|
||||
|
||||
Reference in new issue
Block a user