File tree 2 files changed +37
-20
lines changed
2 files changed +37
-20
lines changed Original file line number Diff line number Diff line change 1
1
name : build
2
2
3
- on : [push, pull_request]
3
+ on :
4
+ push :
5
+ paths :
6
+ - ' !demo/**'
7
+ - ' !docker/**'
8
+ - ' !tools/**'
4
9
5
- jobs :
6
- lint :
7
- runs-on : ubuntu-latest
8
- steps :
9
- - uses : actions/checkout@v2
10
- - name : Set up Python 3.7
11
- uses : actions/setup-python@v2
12
- with :
13
- python-version : 3.7
14
- - name : Install pre-commit hook
15
- run : |
16
- pip install pre-commit
17
- pre-commit install
18
- - name : Linting
19
- run : pre-commit run --all-files
20
- - name : Check docstring coverage
21
- run : |
22
- pip install interrogate
23
- interrogate -v --ignore-init-method --ignore-module --ignore-nested-functions --ignore-regex "__repr__" --fail-under 80 mmdet
10
+ pull_request :
11
+ paths :
12
+ - ' !demo/**'
13
+ - ' !docker/**'
14
+ - ' !tools/**'
15
+ - ' !docs/**'
16
+ - ' !docs_zh-CN/**'
24
17
18
+ jobs :
25
19
build_cpu :
26
20
runs-on : ubuntu-18.04
27
21
strategy :
Original file line number Diff line number Diff line change
1
+ name : lint
2
+
3
+ on : [push, pull_request]
4
+
5
+ jobs :
6
+ lint :
7
+ runs-on : ubuntu-latest
8
+ steps :
9
+ - uses : actions/checkout@v2
10
+ - name : Set up Python 3.7
11
+ uses : actions/setup-python@v2
12
+ with :
13
+ python-version : 3.7
14
+ - name : Install pre-commit hook
15
+ run : |
16
+ pip install pre-commit
17
+ pre-commit install
18
+ - name : Linting
19
+ run : pre-commit run --all-files
20
+ - name : Check docstring coverage
21
+ run : |
22
+ pip install interrogate
23
+ interrogate -v --ignore-init-method --ignore-module --ignore-nested-functions --ignore-regex "__repr__" --fail-under 80 mmdet
You can’t perform that action at this time.
0 commit comments