tentative to add ci pipeline

This commit is contained in:
GotthardG 2024-12-13 15:05:30 +01:00
parent 48825e9b56
commit 600e67ff76
2 changed files with 2 additions and 1 deletions

View File

@ -23,6 +23,7 @@ test:
script: script:
- source $VIRTUAL_ENV/bin/activate - source $VIRTUAL_ENV/bin/activate
- pip install -r requirements.txt - pip install -r requirements.txt
- export PYTHONPATH=$PYTHONPATH:/home/gitlab-runner/builds/t3_38ooWt/0/mx/heidi-v2/backend
- pytest --cov=app --cov-report=xml # Run tests and generate coverage report - pytest --cov=app --cov-report=xml # Run tests and generate coverage report
lint: lint:

View File

@ -1,7 +1,7 @@
# tests/test_auth.py # tests/test_auth.py
from fastapi.testclient import TestClient from fastapi.testclient import TestClient
from main import app from ..main import app
client = TestClient(app) client = TestClient(app)