fix(backend): add email-validator dependency for Pydantic EmailStr #12
Workflow file for this run
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: CI | |
| on: | |
| push: | |
| branches: [main, rag] | |
| pull_request: | |
| branches: [main, rag] | |
| jobs: | |
| backend: | |
| name: Backend (Python) | |
| runs-on: ubuntu-latest | |
| services: | |
| postgres: | |
| image: postgres:15-alpine | |
| env: | |
| POSTGRES_USER: bitcoin_academy | |
| POSTGRES_PASSWORD: bitcoin_academy | |
| POSTGRES_DB: bitcoin_academy | |
| ports: | |
| - 5432:5432 | |
| options: >- | |
| --health-cmd pg_isready | |
| --health-interval 5s | |
| --health-timeout 5s | |
| --health-retries 5 | |
| defaults: | |
| run: | |
| working-directory: services/ai | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.11" | |
| cache: pip | |
| cache-dependency-path: services/ai/pyproject.toml | |
| - name: Install dependencies | |
| run: pip install -e ".[dev]" | |
| - name: Type check (mypy) | |
| run: mypy app | |
| env: | |
| DATABASE_URL: postgresql://bitcoin_academy:bitcoin_academy@localhost:5432/bitcoin_academy | |
| SECRET_KEY: CI-AUTH-JWT-KEY-FOR-PIPELINE-ONLY-32! | |
| - name: Run tests (pytest) | |
| run: pytest | |
| env: | |
| DATABASE_URL: postgresql://bitcoin_academy:bitcoin_academy@localhost:5432/bitcoin_academy | |
| SECRET_KEY: CI-AUTH-JWT-KEY-FOR-PIPELINE-ONLY-32! | |
| ENVIRONMENT: development | |
| frontend: | |
| name: Frontend (Node.js) | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| working-directory: apps/web | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: "22" | |
| cache: npm | |
| cache-dependency-path: apps/web/package-lock.json | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Type check (tsc) | |
| run: npm run type-check | |
| - name: Lint | |
| run: npm run lint | |
| env: | |
| NEXT_PUBLIC_API_BASE_URL: http://localhost:8000/api | |
| - name: Run tests (Jest) | |
| run: npm test -- --ci --passWithNoTests | |
| qvac-service: | |
| name: QVAC Service (Node.js) | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| working-directory: workers/qvac-service | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: "22" | |
| cache: npm | |
| cache-dependency-path: workers/qvac-service/package-lock.json | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Run tests | |
| run: npm test |