Skip to content
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

gh-109408: Run patchcheck in GitHub Actions #109459

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/action@v3.0.0

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
sobolevn marked this conversation as resolved.
Show resolved Hide resolved
ref: ${{ github.event.pull_request.head.ref }}
sobolevn marked this conversation as resolved.
Show resolved Hide resolved
repository: ${{ github.event.pull_request.head.repo.full_name }}
sobolevn marked this conversation as resolved.
Show resolved Hide resolved
- uses: actions/setup-python@v4
with:
python-version: "3.11"
- name: "Run patchcheck"
run: |
git status && git branch
sobolevn marked this conversation as resolved.
Show resolved Hide resolved
python Tools/patchcheck/patchcheck.py --ci true
Loading