style(users): ruff format get_or_create fallback SELECT #103
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] | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: astral-sh/setup-uv@v5 | |
| with: | |
| enable-cache: true | |
| - name: Install dependencies | |
| run: uv sync --frozen | |
| - name: Lint | |
| run: uv run ruff check src/ tests/ infra/ | |
| - name: Format check | |
| run: uv run ruff format --check src/ tests/ infra/ | |
| - name: CVE scan (pip-audit) | |
| continue-on-error: true | |
| run: | | |
| uv export --no-hashes --format requirements-txt --frozen > /tmp/requirements.txt | |
| uvx pip-audit -r /tmp/requirements.txt | |
| - name: Test | |
| run: uv run pytest tests/ -x --tb=short -q | |
| env: | |
| # Use SQLite for CI (no postgres dependency -- matches existing test conftest pattern) | |
| DATABASE_URL: sqlite+aiosqlite:///./test.db | |
| TWILIO_AUTH_TOKEN: test_token | |
| TWILIO_ACCOUNT_SID: test_sid | |
| TWILIO_FROM_NUMBER: "+15005550006" | |
| WEBHOOK_BASE_URL: http://localhost:8000 | |
| OPENAI_API_KEY: test_key | |
| PINECONE_API_KEY: test_key | |
| PINECONE_INDEX_HOST: test_host | |
| BRAINTRUST_API_KEY: test_key |