Compare commits

...

5 Commits

2 changed files with 5 additions and 1 deletions

1
.gitignore vendored
View File

@ -3,3 +3,4 @@ venv/
.idea/
app/*.sqlite*
app/cert/*.*
.pytest_cache

View File

@ -16,10 +16,13 @@ build:
- docker push ${CI_REGISTRY}/${CI_PROJECT_PATH}/${CI_BUILD_REF_NAME}:${CI_BUILD_REF}
test:
image: python:3.10-alpine
image: python:3.10-slim-bullseye
stage: test
before_script:
- pip install -r requirements.txt
- pip install pytest httpx
- openssl genrsa -out app/instance.private.pem 2048
- openssl rsa -in app/instance.private.pem -outform PEM -pubout -out app/instance.public.pem
- cd test
script:
- pytest main.py