chore: remove temporary PR validation workflow
This commit is contained in:
@@ -1,58 +0,0 @@
|
|||||||
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
|
|
||||||
Reference in New Issue
Block a user