Fix use-after-free in get_xpu_view_from_cpu_tensor #1257
Workflow file for this run
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
| name: pre-commit | |
| on: | |
| pull_request: | |
| push: | |
| branches: [main] | |
| permissions: | |
| contents: read | |
| jobs: | |
| pre-commit: | |
| runs-on: self-hosted-pvc | |
| steps: | |
| - name: Clean workspace | |
| run: | | |
| sudo chown -R "$(id -u):$(id -g)" . || true | |
| git clean -ffdx || true | |
| git reset --hard || true | |
| - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 | |
| - uses: actions/setup-python@83679a892e2d95755f2dac6acb0bfd1e9ac5d548 # v6.1.0 | |
| with: | |
| python-version: "3.10" | |
| - run: echo "::add-matcher::.github/workflows/matchers/actionlint.json" | |
| - run: echo "::add-matcher::.github/workflows/matchers/mypy.json" | |
| - uses: pre-commit/action@2c7b3805fd2a0fd8c1884dcaebf91fc102a13ecd # v3.0.1 | |
| with: | |
| extra_args: --all-files --hook-stage manual |