From 4568881d1e1565b243476458d74c982a40d7912a Mon Sep 17 00:00:00 2001 From: Oscar Krause Date: Tue, 8 Apr 2025 09:56:51 +0200 Subject: [PATCH] fixes --- .gitlab-ci.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 07f6a8b..dd97c6f 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -153,7 +153,7 @@ test: - source venv/bin/activate - pip install --upgrade pip - pip install -r $REQUIREMENTS - - pip install pytest httpx + - pip install pytest pytest-cov pytest-custom_exit_code httpx - mkdir -p app/cert - openssl genrsa -out app/cert/instance.private.pem 2048 - openssl rsa -in app/cert/instance.private.pem -outform PEM -pubout -out app/cert/instance.public.pem @@ -265,13 +265,12 @@ test_coverage: before_script: - apt-get update && apt-get install -y python3-dev gcc - pip install -r requirements.txt - - pip install pytest httpx + - pip install pytest pytest-cov pytest-custom_exit_code httpx - mkdir -p app/cert - openssl genrsa -out app/cert/instance.private.pem 2048 - openssl rsa -in app/cert/instance.private.pem -outform PEM -pubout -out app/cert/instance.public.pem - cd test script: - - pip install pytest pytest-cov - coverage run -m pytest main.py --junitxml=report.xml --suppress-no-test-exit-code - coverage report - coverage xml