[pull] main from llvm:main #614
This file contains 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: "Check Python Formatting" | |
on: | |
pull_request: | |
# run on .py | |
paths: | |
- '**.py' | |
jobs: | |
python_formatting: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Fetch LLVM sources | |
uses: actions/checkout@v4 | |
with: | |
persist-credentials: false | |
fetch-depth: 2 | |
- name: Get changed files | |
id: changed-files | |
uses: tj-actions/changed-files@v39 | |
with: | |
files: '**/*.py' | |
- name: "Listed files" | |
run: | | |
echo "Formatting files:" | |
echo "${{ steps.changed-files.outputs.all_changed_files }}" | |
- name: Setup Python env | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.11' | |
- name: Python Formatting | |
uses: akaihola/[email protected] | |
with: | |
options: "--check --diff --color" | |
version: "~=1.7.2" | |
src: "${{ steps.changed-files.outputs.all_changed_files }}" |