Skip to content

Commit 03884d4

Browse files
authored
Change to use public resource of github. (#36)
1 parent 19748d0 commit 03884d4

File tree

2 files changed

+7
-9
lines changed

2 files changed

+7
-9
lines changed

.github/workflows/Codestyle-Check.yml

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,13 @@ name: Codestyle-Check
22

33
on:
44
pull_request:
5-
branches: ["develop"]
5+
branches:
6+
- develop
67

78
jobs:
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=$?

requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
pre-commit

0 commit comments

Comments
 (0)