Skip to content

ci: pin every bare actions/*@vN reference to a full commit SHA (BE-5121) #38

ci: pin every bare actions/*@vN reference to a full commit SHA (BE-5121)

ci: pin every bare actions/*@vN reference to a full commit SHA (BE-5121) #38

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.
on:
pull_request:
paths:
- '.github/cursor-review/**'
- '.github/workflows/test-cursor-review-scripts.yml'
push:
branches: [main]
paths:
- '.github/cursor-review/**'
- '.github/workflows/test-cursor-review-scripts.yml'
permissions:
contents: read
jobs:
test:
name: unittest
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6
with:
persist-credentials: false
- name: Set up Python
uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # 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