chore(deps): bump pillow from 10.4.0 to 12.2.0 in /backend #1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: PR Build Test | |
| on: | |
| pull_request: | |
| branches: | |
| - main | |
| - develop | |
| env: | |
| REGISTRY: ghcr.io | |
| BACKEND_IMAGE_NAME: eneo-ai/eneo-backend | |
| FRONTEND_IMAGE_NAME: eneo-ai/eneo-frontend | |
| # Minimal settings to satisfy Settings validation (overridden by test fixtures) | |
| POSTGRES_USER: placeholder | |
| POSTGRES_HOST: placeholder | |
| POSTGRES_PASSWORD: placeholder | |
| POSTGRES_PORT: 5432 | |
| POSTGRES_DB: placeholder | |
| REDIS_HOST: localhost | |
| REDIS_PORT: 6379 | |
| UPLOAD_FILE_TO_SESSION_MAX_SIZE: 10485760 | |
| UPLOAD_IMAGE_TO_SESSION_MAX_SIZE: 10485760 | |
| UPLOAD_MAX_FILE_SIZE: 10485760 | |
| TRANSCRIPTION_MAX_FILE_SIZE: 10485760 | |
| MAX_IN_QUESTION: 1 | |
| API_PREFIX: /api/v1 | |
| API_KEY_LENGTH: 64 | |
| API_KEY_HEADER_NAME: X-API-Key | |
| JWT_AUDIENCE: test | |
| JWT_ISSUER: test | |
| JWT_EXPIRY_TIME: 3600 | |
| JWT_ALGORITHM: HS256 | |
| JWT_SECRET: test_secret | |
| JWT_TOKEN_PREFIX: Bearer | |
| URL_SIGNING_KEY: test_key | |
| ENCRYPTION_KEY: yPIAaWTENh5knUuz75NYHblR3672X-7lH-W6AD4F1hs= | |
| # API keys for external services (placeholder values for import-time initialization) | |
| OPENAI_API_KEY: test-api-key | |
| jobs: | |
| unit-tests: | |
| runs-on: ubuntu-latest | |
| name: Run unit tests | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v6 | |
| with: | |
| version: "0.8.22" | |
| enable-cache: true | |
| - name: Set up Python | |
| run: uv python install 3.11 | |
| - name: Verify lockfile consistency | |
| working-directory: ./backend | |
| run: uv lock --check | |
| - name: Install dependencies | |
| working-directory: ./backend | |
| run: uv sync --frozen --all-groups | |
| - name: Run unit tests | |
| working-directory: ./backend | |
| run: | | |
| uv run pytest -v -n auto -m "not integration" tests/ | |
| integration-tests: | |
| runs-on: ubuntu-latest | |
| name: Run integration tests | |
| services: | |
| redis: | |
| image: redis:7-alpine | |
| ports: | |
| - 6379:6379 | |
| options: >- | |
| --health-cmd "redis-cli ping" | |
| --health-interval 10s | |
| --health-timeout 5s | |
| --health-retries 5 | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v6 | |
| with: | |
| version: "0.8.22" | |
| enable-cache: true | |
| - name: Set up Python | |
| run: uv python install 3.11 | |
| - name: Verify lockfile consistency | |
| working-directory: ./backend | |
| run: uv lock --check | |
| - name: Install dependencies | |
| working-directory: ./backend | |
| run: uv sync --frozen --all-groups | |
| - name: Run integration tests | |
| working-directory: ./backend | |
| run: | | |
| uv run pytest -v -n auto -m integration tests/integration/ | |
| env: | |
| # Testcontainers configuration | |
| TESTCONTAINERS_RYUK_DISABLED: "true" | |
| DOCKER_HOST: unix:///var/run/docker.sock | |
| build-test: | |
| runs-on: ubuntu-latest | |
| name: Test Docker builds | |
| needs: [unit-tests, integration-tests] | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Test build backend | |
| uses: docker/build-push-action@v5 | |
| with: | |
| context: ./backend | |
| file: ./backend/Dockerfile | |
| push: false | |
| tags: test-build | |
| - name: Test build frontend | |
| uses: docker/build-push-action@v5 | |
| with: | |
| context: ./frontend | |
| file: ./frontend/Dockerfile | |
| push: false | |
| tags: test-build |