From 52125545cff9a43bad5f98a771d1e06d974af2af Mon Sep 17 00:00:00 2001 From: Mondo Diaz Date: Tue, 13 Jan 2026 23:01:08 +0000 Subject: [PATCH] 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. --- .gitlab-ci.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 32b10f1..7d79525 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -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