Implement flock-based bitmap GPU allocator for CI parallelization #2729
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
| # SPDX-License-Identifier: MIT | |
| # Copyright (c) 2025 Advanced Micro Devices, Inc. All rights reserved. | |
| name: Lint & Auto-Fix | |
| on: [push, pull_request] | |
| jobs: | |
| lint: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v3 | |
| - name: Set up Python | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: "3.10" | |
| - name: Install Ruff | |
| run: pip install ruff | |
| - name: Run Ruff and auto-fix issues | |
| run: ruff check . --fix | |
| - name: Run Ruff formatter | |
| run: ruff format . | |
| - name: Commit and push fixes | |
| run: | | |
| git config --global user.name "github-actions[bot]" | |
| git config --global user.email "github-actions[bot]@users.noreply.github.com" | |
| git add . | |
| git commit -m "Apply Ruff auto-fixes" || echo "No changes to commit" | |
| git push | |
| continue-on-error: true |