File tree 2 files changed +11
-2
lines changed 2 files changed +11
-2
lines changed Original file line number Diff line number Diff line change 12
12
python-version : [3.6, 3.7, 3.8]
13
13
14
14
steps :
15
- - uses : actions/checkout@v1
15
+ - uses : actions/checkout@v2
16
+ with :
17
+ fetch-depth : 0
16
18
- name : Set up Python ${{ matrix.python-version }}
17
19
uses : actions/setup-python@v1
18
20
with :
27
29
git config --global user.email "action@github.com"
28
30
git config --global user.name "GitHub Action"
29
31
./scripts/test
32
+ - name : Check commit
33
+ run : |
34
+ poetry run python -m commitizen check --rev-range ${{ github.event.pull_request.base.sha }}..${{ github.event.pull_request.head.sha }} || \
35
+ if [ $$? == 3 ] ; then
36
+ exit 0;
37
+ else
38
+ exit 1;
39
+ fi
30
40
- name : Upload coverage to Codecov
31
41
if : runner.os == 'Linux'
32
42
uses : codecov/codecov-action@v1.0.3
Original file line number Diff line number Diff line change @@ -11,4 +11,3 @@ ${PREFIX}isort --recursive --check-only commitizen tests
11
11
${PREFIX} flake8 commitizen/ tests/
12
12
${PREFIX} mypy commitizen/ tests/
13
13
${PREFIX} pydocstyle --convention=google --add-ignore=D1,D415
14
- ${PREFIX} commitizen check --rev-range master..
You can’t perform that action at this time.
0 commit comments