Compare commits

...

2 Commits

Author SHA1 Message Date
ac90dff43a fix: Update GitHub and Gitea workflows for Python 3.13 and MongoDB
Some checks failed
CI/CD Pipeline / Lint Code (push) Failing after 36s
CI/CD Pipeline / Generate Documentation (push) Failing after 35s
CI/CD Pipeline / Run Tests (push) Has been skipped
CI/CD Pipeline / Security Scanning (push) Has been skipped
CI/CD Pipeline / Build and Push Docker Images (api) (push) Has been skipped
CI/CD Pipeline / Build and Push Docker Images (chat) (push) Has been skipped
CI/CD Pipeline / Build and Push Docker Images (frontend) (push) Has been skipped
CI/CD Pipeline / Build and Push Docker Images (worker) (push) Has been skipped
CI/CD Pipeline / Deploy to Staging (push) Has been skipped
CI/CD Pipeline / Deploy to Production (push) Has been skipped
Changes to GitHub Actions (.github/workflows/build-deploy.yml):
- Update PYTHON_VERSION from 3.11 to 3.13

Changes to Gitea Actions (.gitea/workflows/ci.yml):
- Update PYTHON_VERSION from 3.10 to 3.13
- Update POETRY_VERSION from 1.7.1 to 1.8.0
- Replace PostgreSQL and Redis services with MongoDB
- Update service health check for MongoDB (mongosh)
- Update test environment variables for MongoDB
- Remove DATABASE_URL and REDIS_URL
- Add MONGODB_URL and MONGODB_DATABASE

This ensures all CI/CD pipelines are aligned with:
- Python 3.13 requirement in pyproject.toml
- MongoDB migration from PostgreSQL

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-19 14:14:57 +02:00
6945efb41a fix: Update GitLab CI/CD pipeline for Python 3.13 and MongoDB
Changes:
- Update PYTHON_VERSION from 3.10 to 3.13
- Update POETRY_VERSION from 1.7.1 to 1.8.0
- Replace PostgreSQL with MongoDB in test services
- Update test environment variables for MongoDB
- Remove Redis service (not used in current implementation)

This fixes the pipeline error:
"The currently activated Python version 3.10.19 is not supported by the project (^3.13)"

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-19 14:12:49 +02:00
3 changed files with 18 additions and 40 deletions

View File

@@ -11,8 +11,8 @@ on:
- cron: '0 */6 * * *' # Every 6 hours for docs generation
env:
POETRY_VERSION: 1.7.1
PYTHON_VERSION: "3.10"
POETRY_VERSION: 1.8.0
PYTHON_VERSION: "3.13"
REGISTRY: ${{ vars.PACKAGES_REGISTRY }}
IMAGE_NAME: ${{ gitea.repository }}
@@ -57,28 +57,14 @@ jobs:
name: Run Tests
runs-on: ubuntu-latest
needs: lint
services:
redis:
image: redis:7-alpine
mongodb:
image: mongo:7-jammy
ports:
- 6379:6379
- 27017:27017
options: >-
--health-cmd "redis-cli ping"
--health-interval 10s
--health-timeout 5s
--health-retries 5
postgres:
image: postgres:15-alpine
env:
POSTGRES_DB: testdb
POSTGRES_USER: test
POSTGRES_PASSWORD: test
ports:
- 5432:5432
options: >-
--health-cmd pg_isready
--health-cmd "mongosh --eval 'db.adminCommand(\"ping\")'"
--health-interval 10s
--health-timeout 5s
--health-retries 5
@@ -105,8 +91,8 @@ jobs:
- name: Run unit tests
env:
DATABASE_URL: postgresql://test:test@localhost:5432/testdb
REDIS_URL: redis://localhost:6379/0
MONGODB_URL: mongodb://localhost:27017
MONGODB_DATABASE: testdb
run: |
poetry run pytest tests/unit -v --cov --cov-report=xml --cov-report=html
continue-on-error: true

View File

@@ -26,7 +26,7 @@ on:
env:
DOCKER_REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}/docs-server
PYTHON_VERSION: '3.11'
PYTHON_VERSION: '3.13'
jobs:
# Job 1: Linting e validazione

View File

@@ -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: