docs(troubleshooting): document automatic Gemini API rate-limit retries #13
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: PersonaForge CI | |
| on: | |
| push: | |
| branches: [ main ] | |
| pull_request: | |
| branches: [ main ] | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| services: | |
| redis: | |
| image: redis | |
| ports: | |
| - 6379:6379 | |
| postgres: | |
| image: postgres:15 | |
| env: | |
| POSTGRES_DB: personaforge_test | |
| POSTGRES_PASSWORD: password | |
| ports: | |
| - 5432:5432 | |
| options: >- | |
| --health-cmd pg_isready | |
| --health-interval 10s | |
| --health-timeout 5s | |
| --health-retries 5 | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Set up Python | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: '3.11' | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install -r requirements.txt | |
| pip install pytest pytest-asyncio pytest-mock | |
| - name: Run unit tests | |
| env: | |
| GOOGLE_API_KEY: ${{ secrets.GOOGLE_API_KEY }} | |
| ELEVENLABS_API_KEY: ${{ secrets.ELEVENLABS_API_KEY }} | |
| DATABASE_URL: postgresql+asyncpg://postgres:password@localhost:5432/personaforge_test | |
| run: | | |
| export PYTHONPATH=$PYTHONPATH:. | |
| pytest tests/ | |
| - name: Run PersonaForge CI Gate | |
| env: | |
| GOOGLE_API_KEY: ${{ secrets.GOOGLE_API_KEY }} | |
| ELEVENLABS_API_KEY: ${{ secrets.ELEVENLABS_API_KEY }} | |
| DATABASE_URL: postgresql+asyncpg://postgres:password@localhost:5432/personaforge_test | |
| PERSONAFORGE_CI_DRY_RUN: "true" | |
| run: | | |
| export PYTHONPATH=$PYTHONPATH:. | |
| python3 personaforge/backend/app/cli/main.py init | |
| python3 personaforge/backend/app/cli/main.py ci |