File tree Expand file tree Collapse file tree 4 files changed +805
-783
lines changed Expand file tree Collapse file tree 4 files changed +805
-783
lines changed Original file line number Diff line number Diff line change @@ -4,26 +4,34 @@ on: [pull_request]
4
4
5
5
permissions :
6
6
contents : write
7
+
7
8
jobs :
8
9
pull_format :
9
- runs-on : ubuntu-latest
10
+ runs-on : ${{ matrix.os }}
11
+
12
+ strategy :
13
+ matrix :
14
+ python-version : ["3.10"]
15
+ os : [ubuntu-latest]
16
+ fail-fast : false
17
+
10
18
continue-on-error : true
19
+
11
20
steps :
12
21
- name : checkout
13
22
continue-on-error : true
14
23
uses : actions/checkout@v3
15
24
with :
16
25
ref : ${{ github.head_ref }}
17
26
fetch-depth : 0
18
-
19
-
27
+
20
28
- name : Set up Python ${{ matrix.python-version }}
21
29
uses : actions/setup-python@v4
22
30
with :
23
31
python-version : ${{ matrix.python-version }}
24
32
25
33
- name : Install Black
26
- run : pip install black
34
+ run : pip install " black[jupyter]"
27
35
28
36
- name : Run Black
29
37
# run: black $(git ls-files '*.py')
Original file line number Diff line number Diff line change 8
8
permissions :
9
9
contents : write
10
10
pull-requests : write
11
+
11
12
jobs :
12
13
push_format :
13
- runs-on : ubuntu-latest
14
+ runs-on : ${{ matrix.os }}
15
+
16
+ strategy :
17
+ matrix :
18
+ python-version : ["3.10"]
19
+ os : [ubuntu-latest]
20
+ fail-fast : false
21
+
14
22
steps :
15
23
- uses : actions/checkout@v3
16
24
with :
22
30
python-version : ${{ matrix.python-version }}
23
31
24
32
- name : Install Black
25
- run : pip install black
33
+ run : pip install " black[jupyter]"
26
34
27
35
- name : Run Black
28
36
# run: black $(git ls-files '*.py')
36
44
git config --local user.name "github-actions[bot]"
37
45
git add --all
38
46
git commit -m "Format code"
39
-
47
+
40
48
- name : Create Pull Request
41
49
if : steps.commitback.outcome == 'success'
42
50
continue-on-error : true
You can’t perform that action at this time.
0 commit comments