Skip to content

TraceDiff: Post WF name disambiguation #1333

TraceDiff: Post WF name disambiguation

TraceDiff: Post WF name disambiguation #1333

Workflow file for this run

###############################################################################
# Copyright (c) 2025 - 2026 Advanced Micro Devices, Inc. All rights reserved.
#
# See LICENSE for license information.
###############################################################################
name: Lint
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.10'
cache: 'pip'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install black==26.1.0 # Pin for CI reproducibility; use same version locally
- name: Run Black
# only run black on changed files based on this example:
run: |
changed_files=$(git diff --diff-filter=d --name-only $(git merge-base HEAD origin/main) HEAD | grep '\.py$' || true)
if [ -n "$changed_files" ]; then
echo "$changed_files" | xargs echo "Running black on changed files: "
echo "$changed_files" | xargs black --check
fi