Skip to content

Remove port cleanup steps from CI workflows #2734

Remove port cleanup steps from CI workflows

Remove port cleanup steps from CI workflows #2734

Workflow file for this run

# 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