Run only unit tests in CI test stage

Integration tests require Docker Compose services (PostgreSQL, MinIO, Redis)
which aren't available in the CI container. Unit tests run independently.
This commit is contained in:
Mondo Diaz
2026-01-13 23:01:08 +00:00
parent 58bdb208a9
commit 52125545cf

View File

@@ -33,7 +33,8 @@ python_tests:
- pip install pytest pytest-asyncio pytest-cov httpx
script:
- cd backend
- python -m pytest -v --cov=app --cov-report=term --cov-report=xml:coverage.xml --cov-report=html:coverage_html --junitxml=pytest-report.xml
# Only run unit tests - integration tests require Docker Compose services
- python -m pytest tests/unit/ -v --cov=app --cov-report=term --cov-report=xml:coverage.xml --cov-report=html:coverage_html --junitxml=pytest-report.xml
artifacts:
when: always
expire_in: 1 week