|
38 | 38 | integrations-claude-code: ${{ steps.filter.outputs.integrations-claude-code }} |
39 | 39 | integrations-cline: ${{ steps.filter.outputs.integrations-cline }} |
40 | 40 | integrations-codex: ${{ steps.filter.outputs.integrations-codex }} |
| 41 | + integrations-github-copilot: ${{ steps.filter.outputs.integrations-github-copilot }} |
41 | 42 | integrations-continue: ${{ steps.filter.outputs.integrations-continue }} |
42 | 43 | integrations-cursor-cli: ${{ steps.filter.outputs.integrations-cursor-cli }} |
43 | 44 | integrations-crewai: ${{ steps.filter.outputs.integrations-crewai }} |
@@ -143,6 +144,8 @@ jobs: |
143 | 144 | - 'hindsight-integrations/cline/**' |
144 | 145 | integrations-codex: |
145 | 146 | - 'hindsight-integrations/codex/**' |
| 147 | + integrations-github-copilot: |
| 148 | + - 'hindsight-integrations/github-copilot/**' |
146 | 149 | integrations-continue: |
147 | 150 | - 'hindsight-integrations/continue/**' |
148 | 151 | integrations-cursor-cli: |
@@ -591,6 +594,45 @@ jobs: |
591 | 594 | working-directory: ./hindsight-integrations/cline |
592 | 595 | run: uv run pytest tests -v |
593 | 596 |
|
| 597 | + test-github-copilot-integration: |
| 598 | + needs: [detect-changes] |
| 599 | + if: >- |
| 600 | + (github.event_name == 'workflow_dispatch' || |
| 601 | + needs.detect-changes.outputs.integrations-github-copilot == 'true' || |
| 602 | + needs.detect-changes.outputs.ci == 'true') |
| 603 | + runs-on: ubuntu-latest |
| 604 | + timeout-minutes: 30 |
| 605 | + |
| 606 | + steps: |
| 607 | + - uses: actions/checkout@v6 |
| 608 | + with: |
| 609 | + ref: ${{ github.event.pull_request.head.sha || '' }} |
| 610 | + |
| 611 | + - name: Install uv |
| 612 | + uses: astral-sh/setup-uv@v7 |
| 613 | + with: |
| 614 | + enable-cache: true |
| 615 | + prune-cache: false |
| 616 | + |
| 617 | + - name: Set up Python |
| 618 | + uses: actions/setup-python@v6 |
| 619 | + with: |
| 620 | + python-version-file: ".python-version" |
| 621 | + |
| 622 | + - name: Build github-copilot integration |
| 623 | + working-directory: ./hindsight-integrations/github-copilot |
| 624 | + run: uv build |
| 625 | + |
| 626 | + - name: Install dependencies |
| 627 | + working-directory: ./hindsight-integrations/github-copilot |
| 628 | + run: uv sync --frozen |
| 629 | + |
| 630 | + - name: Run tests |
| 631 | + working-directory: ./hindsight-integrations/github-copilot |
| 632 | + # PR CI runs only the deterministic bucket; the real-LLM E2E bucket |
| 633 | + # (requires_real_llm) needs a live Hindsight server and runs separately. |
| 634 | + run: uv run pytest tests -v -m "not requires_real_llm" |
| 635 | + |
594 | 636 | test-codex-integration: |
595 | 637 | needs: [detect-changes] |
596 | 638 | if: >- |
@@ -4788,6 +4830,7 @@ jobs: |
4788 | 4830 | - test-claude-code-integration |
4789 | 4831 | - test-cursor-integration |
4790 | 4832 | - test-cline-integration |
| 4833 | + - test-github-copilot-integration |
4791 | 4834 | - test-codex-integration |
4792 | 4835 | - test-cursor-cli-integration |
4793 | 4836 | - build-ai-sdk-integration |
|
0 commit comments