From 6e9d1024ad3f3ea30b3717ec362abeb6abb5469f Mon Sep 17 00:00:00 2001 From: Aaron Liang <76561968+AaronL725@users.noreply.github.com> Date: Tue, 14 Jul 2026 23:57:39 +0800 Subject: [PATCH] chore: add scoped PR14 review validation workflow --- .../workflows/temp-pr14-remaining-review.yml | 58 +++++++++++++++++++ 1 file changed, 58 insertions(+) create mode 100644 .github/workflows/temp-pr14-remaining-review.yml diff --git a/.github/workflows/temp-pr14-remaining-review.yml b/.github/workflows/temp-pr14-remaining-review.yml new file mode 100644 index 0000000..9b6f886 --- /dev/null +++ b/.github/workflows/temp-pr14-remaining-review.yml @@ -0,0 +1,58 @@ +name: Temporary PR14 remaining review validation + +on: + pull_request_target: + types: [synchronize, reopened] + branches: [main] + +permissions: + contents: write + +jobs: + apply-and-test: + if: >- + github.event.pull_request.number == 14 && + github.event.pull_request.head.repo.full_name == github.repository && + github.event.pull_request.head.ref == 'fix/remaining-review-hardening' + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + with: + ref: fix/remaining-review-hardening + - id: patch + name: Detect pending transformation + shell: bash + run: | + if [[ -f tools/apply_remaining_review_fixes.py && -f tools/review_fix_payloads.py ]]; then + echo "run=true" >> "$GITHUB_OUTPUT" + else + echo "run=false" >> "$GITHUB_OUTPUT" + fi + - if: steps.patch.outputs.run == 'true' + uses: actions/setup-python@v5 + with: + python-version: '3.12' + - if: steps.patch.outputs.run == 'true' + name: Install dependencies + run: python -m pip install -r requirements.txt + - if: steps.patch.outputs.run == 'true' + name: Apply remaining review fixes + run: python tools/apply_remaining_review_fixes.py + - if: steps.patch.outputs.run == 'true' + name: Compile + run: python -m compileall -q grok_register_ttk.py registration_core.py cpa_export.py cpa_xai tests + - if: steps.patch.outputs.run == 'true' + name: Run tests + run: python -m unittest discover -s tests -v + - if: steps.patch.outputs.run == 'true' + name: Check diff + run: git diff --check + - if: steps.patch.outputs.run == 'true' + name: Commit tested changes and remove branch tooling + run: | + git config user.name "github-actions[bot]" + git config user.email "41898282+github-actions[bot]@users.noreply.github.com" + git rm -f tools/apply_remaining_review_fixes.py tools/review_fix_payloads.py .github/workflows/temp-remaining-review-fixes.yml + git add -A + git commit -m "fix: resolve remaining review findings" + git push origin HEAD:fix/remaining-review-hardening