Move suggest fixes to a separate CI workflow #2
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Copyright (c) ONNX Project Contributors | |
# | |
# SPDX-License-Identifier: Apache-2.0 | |
name: PR Checks | |
on: | |
pull_request: | |
branches: | |
- main | |
permissions: # set top-level default permissions as security best practice | |
contents: read | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.event_name == 'workflow_dispatch' }} | |
cancel-in-progress: true | |
jobs: | |
auto-apply-fixes: | |
name: Suggest fixes | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
pull-requests: write | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: "3.10" | |
- name: Install dependencies | |
run: | | |
python -m pip install -r requirements-dev.txt | |
lintrunner init | |
- name: Run lintrunner on all files | |
run: | | |
set +e | |
lintrunner f --all-files -v | |
exit 0 | |
- uses: parkerbxyz/suggest-changes@v1 | |
with: | |
comment: 'You can commit the suggested changes from lintrunner.' |