adding tests and fix the pip install

This commit is contained in:
Michael Mäder
2025-03-10 09:15:56 +01:00
parent aeb8ec5096
commit aa6743cfee
5 changed files with 86 additions and 3 deletions

View File

@@ -9,12 +9,14 @@ build job:
- apt-get update -qy
- apt-get install -y python3-dev python3-pip python3.12-venv
- python3 -V
- pip install pdm
- pdm install
- pip3 install -r requirements.txt
# launch tests
- export PYTHONPATH=.
- export FLASK_APP=app
- pdm run pytest --cov --cov-report term --cov-report html
- pytest tests --cov --cov-report term --cov-report html
artifacts:
paths:
- src/htmlcov/