File tree Expand file tree Collapse file tree 2 files changed +7
-9
lines changed
Expand file tree Collapse file tree 2 files changed +7
-9
lines changed Original file line number Diff line number Diff line change @@ -2,14 +2,13 @@ name: Codestyle-Check
22
33on :
44 pull_request :
5- branches : ["develop"]
5+ branches :
6+ - develop
67
78jobs :
89 pre-commit :
910 name : Pre Commit
10- if : ${{ github.repository_owner == 'PaddlePaddle' }}
11- runs-on :
12- group : APPROVAL
11+ runs-on : ubuntu-latest
1312 env :
1413 PR_ID : ${{ github.event.pull_request.number }}
1514 BRANCH : develop
@@ -38,22 +37,20 @@ jobs:
3837 git fetch origin pull/${PR_ID}/merge
3938 git checkout -b test FETCH_HEAD
4039
41- - name : Setup python3.12
40+ - name : Setup python3.10
4241 if : steps.check-bypass.outputs.can-skip != 'true'
4342 uses : actions/setup-python@v5
4443 with :
45- python-version : ' 3.12 '
44+ python-version : ' 3.10 '
4645 cache : ' pip'
4746
4847 - name : Install dependencies
4948 if : steps.check-bypass.outputs.can-skip != 'true'
5049 run : |
51- pip install pre-commit==2.17.0 cpplint==1.6.0 clang-format==13.0.0
50+ pip install pre-commit==2.17.0
5251
5352 - name : Check pre-commit
5453 if : steps.check-bypass.outputs.can-skip != 'true'
55- env :
56- SKIP_CLANG_TIDY_CHECK : " ON"
5754 run : |
5855 set +e
5956 bash -x tools/codestyle/pre_commit.sh;EXCODE=$?
Original file line number Diff line number Diff line change 1+ pre-commit
You can’t perform that action at this time.
0 commit comments