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