diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 325499f..36d43b9 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -8,8 +8,8 @@ stages: - docs variables: - POETRY_VERSION: "1.7.1" - PYTHON_VERSION: "3.10" + POETRY_VERSION: "1.8.0" + PYTHON_VERSION: "3.13" DOCKER_DRIVER: overlay2 DOCKER_TLS_CERTDIR: "/certs" PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip" @@ -65,14 +65,10 @@ test:unit: extends: .python-base stage: test services: - - redis:7-alpine - - postgres:15-alpine + - mongo:7-jammy variables: - POSTGRES_DB: testdb - POSTGRES_USER: test - POSTGRES_PASSWORD: test - REDIS_URL: redis://redis:6379/0 - DATABASE_URL: postgresql://test:test@postgres:5432/testdb + MONGODB_URL: mongodb://mongo:27017 + MONGODB_DATABASE: testdb script: - poetry run pytest tests/unit -v --cov --cov-report=xml --cov-report=term coverage: '/(?i)total.*? (100(?:\.0+)?\%|[1-9]?\d(?:\.\d+)?\%)$/' @@ -93,14 +89,10 @@ test:integration: extends: .python-base stage: test services: - - redis:7-alpine - - postgres:15-alpine + - mongo:7-jammy variables: - POSTGRES_DB: testdb - POSTGRES_USER: test - POSTGRES_PASSWORD: test - REDIS_URL: redis://redis:6379/0 - DATABASE_URL: postgresql://test:test@postgres:5432/testdb + MONGODB_URL: mongodb://mongo:27017 + MONGODB_DATABASE: testdb script: - poetry run pytest tests/integration -v only: