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.
This commit is contained in:
Tanya 2026-01-09 12:49:42 -05:00
parent 5fb66f9a85
commit 6a194d9f62

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)