Skip to content

fix(perfmodel): aten_conv_bwd in reporting (#467) #269

fix(perfmodel): aten_conv_bwd in reporting (#467)

fix(perfmodel): aten_conv_bwd in reporting (#467) #269

Workflow file for this run

###############################################################################
# Copyright (c) 2024 - 2025 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@v2
with:
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x' # Specify the Python version you need
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install black
- name: Run Black
# only run black on changed files based on this example:
# https://stackoverflow.com/questions/72061054/only-run-black-on-changed-files
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