Initial scaffold: RAG API, vector store, LLM adapters, infra CDK, tests #1
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 - tests and update checklist | |
| on: | |
| push: | |
| branches: [ main, master ] | |
| pull_request: | |
| branches: [ main, master ] | |
| jobs: | |
| test-and-update-checklist: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - 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 poetry | |
| poetry config virtualenvs.create false | |
| poetry install --no-interaction --no-ansi | |
| - name: Run tests | |
| run: pytest -q | |
| - name: Run latency check (mock) | |
| run: | | |
| pytest -q -m "latency or not -k mock_e2e_latency_under_threshold" || true | |
| - name: Recalculate checklist | |
| run: | | |
| python scripts/update_checklist.py --file checklist.md --recalc | |
| - name: Commit updated checklist | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| run: | | |
| git config user.name "github-actions[bot]" | |
| git config user.email "41898282+github-actions[bot]@users.noreply.github.com" | |
| git add checklist.md || true | |
| if ! git diff --staged --quiet; then | |
| git commit -m "chore(ci): update checklist.md" || true | |
| git push https://x-access-token:${GITHUB_TOKEN}@github.com/${{ github.repository }} HEAD:${{ github.ref_name }} | |
| else | |
| echo "No checklist changes to commit" | |
| fi |