File tree Expand file tree Collapse file tree 1 file changed +39
-0
lines changed Expand file tree Collapse file tree 1 file changed +39
-0
lines changed Original file line number Diff line number Diff line change 1+ name : " Check Python Formatting"
2+ on :
3+ pull_request :
4+ # run on .py
5+ paths :
6+ - ' **.py'
7+
8+ jobs :
9+ python_formatting :
10+ runs-on : ubuntu-latest
11+ steps :
12+ - name : Fetch LLVM sources
13+ uses : actions/checkout@v4
14+ with :
15+ persist-credentials : false
16+ fetch-depth : 2
17+
18+ - name : Get changed files
19+ id : changed-files
20+ uses : tj-actions/changed-files@v39
21+ with :
22+ files : ' **/*.py'
23+
24+ - name : " Listed files"
25+ run : |
26+ echo "Formatting files:"
27+ echo "${{ steps.changed-files.outputs.all_changed_files }}"
28+
29+ - name : Setup Python env
30+ uses : actions/setup-python@v4
31+ with :
32+ python-version : ' 3.11'
33+
34+ - name : Python Formatting
35+ 36+ with :
37+ options : " --check --diff --color"
38+ version : " ~=1.7.2"
39+ src : " ${{ steps.changed-files.outputs.all_changed_files }}"
You can’t perform that action at this time.
0 commit comments