Skip to content

gh-109408: Run patchcheck in GitHub Actions #109459

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 13 commits into from
19 changes: 19 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,22 @@ jobs:
with:
python-version: "3.x"
- uses: pre-commit/[email protected]

patchcheck:
if: "github.repository == 'python/cpython' && github.event_name == 'pull_request'"
runs-on: ubuntu-latest
timeout-minutes: 10

steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
ref: ${{ github.event.pull_request.head.ref }}
repository: ${{ github.event.pull_request.head.repo.full_name }}
- uses: actions/setup-python@v4
with:
python-version: "3.11"
- name: "Run patchcheck"
run: |
git status && git branch
python Tools/patchcheck/patchcheck.py --ci true