File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1010 test :
1111 strategy :
1212 matrix :
13- python-version : ['3.11', '3.12'] # Specify the Python versions you want to test against
13+ python-version : ['3.10', '3. 11', '3.12'] # Specify the Python versions you want to test against
1414 os : [ubuntu-latest, windows-latest]
1515 name : Python ${{ matrix.python-version }} - ${{ matrix.os }}
1616 runs-on : ${{ matrix.os }}
Original file line number Diff line number Diff line change 1- name : Format
2-
3- on :
4- push :
5- branches : [main]
6- tags : [v*]
7- pull_request :
8-
1+ name : Format Python Code
2+ on : push
93jobs :
10- linter_name :
11- name : runner / black formatter
4+ python-code-format :
125 runs-on : ubuntu-latest
136 steps :
14- - uses : actions/checkout@v4
15- - uses : rickstaa/action-black@v1
7+ - uses : actions/checkout@v2
8+ - uses : actions/setup-python@v4
169 with :
17- black_args : " . --check"
10+ python-version : " 3.12"
11+ architecture : " x64"
12+ - name : Display Python version
13+ run : python --version
14+ - name : Install packages
15+ run : pip install black autopep8 isort
16+ - name : Formatter
17+ run : |
18+ black .
19+ autopep8 --recursive --in-place --aggressive --aggressive .
20+ isort .
21+ - name : Create Pull Request
22+ uses : peter-evans/create-pull-request@v3
23+ with :
24+ commit-message : Auto code format
25+ title : Fixes by format action
26+ body : This is an auto-generated PR with fixes.
27+ labels : automated pr
28+ branch : python-code-format-patches
You can’t perform that action at this time.
0 commit comments