Repository navigation
feat(web): stream narrative via SSE, wire Instagram carousel button, polish privacy #93
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, develop] | |
| pull_request: | |
| branches: [main, develop] | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| quality: | |
| name: Lint, type-check, test | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 10 | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| python-version: ["3.12", "3.13"] | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| - name: Set up Python ${{ matrix.python-version }} | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| cache: pip | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install -e ".[dev]" | |
| - name: Lint (ruff) | |
| run: ruff check . | |
| - name: Format check (ruff) | |
| run: ruff format --check . | |
| - name: Type check (mypy) | |
| run: mypy trailstory/ | |
| - name: Tests with coverage | |
| run: | | |
| pytest \ | |
| --cov=trailstory \ | |
| --cov-report=term-missing \ | |
| --cov-fail-under=80 \ | |
| -v | |
| env: | |
| # Fake key — tests must mock the client, never call the real API | |
| ANTHROPIC_API_KEY: sk-ant-test-fake-key-for-ci-only | |
| - name: Upload coverage report | |
| if: github.ref == 'refs/heads/develop' && matrix.python-version == '3.12' | |
| uses: actions/upload-artifact@v7 | |
| with: | |
| name: coverage-report | |
| path: htmlcov/ | |
| retention-days: 7 |