[Build] Fix DML Nuget Pipeline for Release #12844
This file contains hidden or 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.event_name == 'pull_request' && github.ref || github.sha }} | |
| cancel-in-progress: true | |
| jobs: | |
| auto-apply-fixes: | |
| name: Suggest fixes | |
| runs-on: [ | |
| "self-hosted", | |
| "1ES.Pool=onnxruntime-github-Ubuntu2204-AMD-CPU", | |
| "JobId=pr-auto-apply-fixes-${{ github.run_id }}-${{ github.run_number }}-${{ github.run_attempt }}" | |
| ] | |
| permissions: | |
| contents: read | |
| pull-requests: write | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Setup Python | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: "3.10" | |
| - name: Setup Rust | |
| uses: actions-rs/toolchain@v1 | |
| with: | |
| toolchain: stable | |
| components: rustfmt | |
| - name: Update PATH | |
| run: | | |
| echo "$HOME/.local/bin" >> "$GITHUB_PATH" | |
| - name: Install dependencies and run lintrunner on all files | |
| run: | | |
| python -m pip install --user -r requirements-dev.txt | |
| python -m pip install --user lintrunner lintrunner-adapters | |
| lintrunner init | |
| set +e | |
| lintrunner f --all-files -v | |
| exit 0 | |
| - uses: parkerbxyz/suggest-changes@v3 | |
| with: | |
| comment: 'You can commit the suggested changes from lintrunner.' |