File tree Expand file tree Collapse file tree 2 files changed +34
-2
lines changed Expand file tree Collapse file tree 2 files changed +34
-2
lines changed Original file line number Diff line number Diff line change 7
7
- " binder/**"
8
8
- " docs/**"
9
9
- " examples/**"
10
+ - " .pre-commit-config.yaml"
10
11
push :
11
12
branches :
12
13
- master
14
+ - main
13
15
paths-ignore :
14
16
- " *.md"
15
17
- " binder/**"
16
18
- " docs/**"
17
19
- " examples/**"
20
+ - " .pre-commit-config.yaml"
18
21
19
22
jobs :
20
23
build :
43
46
run : |
44
47
python -m pip install --upgrade pip
45
48
make -C main dev-env
46
- - name : Run pre-commit hooks
47
- run : make -C main pre-commit-all
48
49
- name : Build Docker Images
49
50
run : make -C main build-test-all
50
51
env :
Original file line number Diff line number Diff line change
1
+ name : Run pre-commit hooks
2
+
3
+ on :
4
+ pull_request :
5
+ push :
6
+ branches :
7
+ - master
8
+ - main
9
+
10
+ jobs :
11
+ build :
12
+ name : Run pre-commit hooks
13
+ runs-on : ubuntu-latest
14
+ if : >
15
+ !contains(github.event.head_commit.message, 'ci skip') &&
16
+ !contains(github.event.pull_request.title, 'ci skip')
17
+ steps :
18
+ - name : Clone Main Repo
19
+ uses : actions/checkout@v2
20
+ with :
21
+ path : main
22
+ - name : Set Up Python
23
+ uses : actions/setup-python@v2
24
+ with :
25
+ python-version : 3.8
26
+ - name : Install Dev Dependencies
27
+ run : |
28
+ python -m pip install --upgrade pip
29
+ python -m pip install --upgrade pre-commit
30
+ - name : Run pre-commit hooks
31
+ run : make -C main pre-commit-all
You can’t perform that action at this time.
0 commit comments