Added automated test coverage
This commit is contained in:
@@ -1,17 +1,15 @@
|
||||
stages:
|
||||
- run
|
||||
- test
|
||||
- build
|
||||
- deploy
|
||||
|
||||
run_flask_app:
|
||||
stage: run
|
||||
test:
|
||||
stage: test
|
||||
image: python:3.11
|
||||
before_script:
|
||||
- pip install -r requirements.txt
|
||||
script:
|
||||
- python app.py &
|
||||
- sleep 5
|
||||
- curl http://127.0.0.1:5000
|
||||
- PYTHONPATH=. pytest --cov=. --cov-report=term-missing
|
||||
|
||||
build_docker_image:
|
||||
stage: build
|
||||
|
||||
Reference in New Issue
Block a user