fix(cursor-review): survive a rebranded model family in the drift check (BE-4852) #30
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: Test cursor-review scripts | |
| # Runs the Python unit tests for the cursor-review helper scripts (the | |
| # extract-findings.py JSON parser in particular). These scripts drive the | |
| # review panel + judge consolidation, so a parser regression silently breaks | |
| # every consumer repo's review — cheap to guard with a unit run on change. | |
| # | |
| # cursor-review.yml itself is in the path filter because catalog-drift.py reads | |
| # the model pins OUT of it (BE-4819) — the test suite asserts those anchors | |
| # still parse, and that assertion is only worth anything if it runs when the | |
| # file it parses changes. | |
| on: | |
| pull_request: | |
| paths: | |
| - '.github/cursor-review/**' | |
| - '.github/workflows/cursor-review.yml' | |
| - '.github/workflows/cursor-review-catalog-drift.yml' | |
| - '.github/workflows/test-cursor-review-scripts.yml' | |
| push: | |
| branches: [main] | |
| paths: | |
| - '.github/cursor-review/**' | |
| - '.github/workflows/cursor-review.yml' | |
| - '.github/workflows/cursor-review-catalog-drift.yml' | |
| - '.github/workflows/test-cursor-review-scripts.yml' | |
| permissions: | |
| contents: read | |
| jobs: | |
| test: | |
| name: unittest | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| with: | |
| persist-credentials: false | |
| - name: Set up Python | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: '3.12' | |
| - name: Run cursor-review script tests | |
| run: python3 -m unittest discover -s .github/cursor-review/tests -p 'test_*.py' -v |