Compare commits

..

2 Commits

Author SHA1 Message Date
6a194d9f62 chore: Update CI workflow to include email-validator for Pydantic email validation
All checks were successful
CI / sast-scan (pull_request) Successful in 2m58s
CI / skip-ci-check (pull_request) Successful in 1m32s
CI / lint-and-type-check (pull_request) Successful in 2m17s
CI / python-lint (pull_request) Successful in 1m57s
CI / test-backend (pull_request) Successful in 3m57s
CI / build (pull_request) Successful in 5m7s
CI / secret-scanning (pull_request) Successful in 1m40s
CI / dependency-scan (pull_request) Successful in 1m38s
CI / workflow-summary (pull_request) Successful in 1m30s
This commit modifies the CI workflow to install the email-validator package as part of the Pydantic dependencies. This addition enhances email validation capabilities within the application, ensuring that email addresses are properly validated during processing.
2026-01-09 12:49:42 -05:00
5fb66f9a85 fix: Handle charset parameter in SSE Content-Type header test
The SSE endpoint returns 'text/event-stream; charset=utf-8' but the test
was checking for an exact match. Update the test to use startswith() to
handle the charset parameter correctly.
2026-01-09 12:48:22 -05:00
2 changed files with 5 additions and 3 deletions

View File

@ -443,7 +443,8 @@ jobs:
# Use venv's pip and python directly (avoids shell activation issues)
# Install core dependencies including numpy and pillow (needed for module-level imports)
# Skip heavy ML dependencies (tensorflow, deepface, opencv) for faster builds
/tmp/backend-venv/bin/pip install --no-cache-dir fastapi uvicorn pydantic sqlalchemy psycopg2-binary redis rq python-jose python-multipart python-dotenv bcrypt numpy pillow
# Include email-validator for pydantic[email] email validation
/tmp/backend-venv/bin/pip install --no-cache-dir fastapi uvicorn "pydantic[email]" sqlalchemy psycopg2-binary redis rq python-jose python-multipart python-dotenv bcrypt numpy pillow
# Set environment variables for validation
export PYTHONPATH=$(pwd)

View File

@ -67,6 +67,7 @@ class TestJobStreaming:
response = test_client.get("/api/v1/jobs/stream/test-job-id")
if response.status_code == 200:
# Check Content-Type for SSE
assert response.headers.get("content-type") == "text/event-stream"
# Check Content-Type for SSE (may include charset parameter)
content_type = response.headers.get("content-type", "")
assert content_type.startswith("text/event-stream")