@@ -66,30 +66,15 @@ jobs:
6666
6767 - name : Download PaddleCustomDevice.tar.gz
6868 run : |
69+ docker exec -t ${{ env.container_name }} /bin/bash -c '
6970 wget -q --tries=5 --no-proxy https://paddle-github-action.bj.bcebos.com/PaddleCustomDevice/PR/${PR_ID}/${COMMIT_ID}/PaddleCustomDevice.tar.gz --no-check-certificate
70- echo "Extracting PaddleTest .tar.gz"
71+ echo "Extracting PaddleCustomDevice .tar.gz"
7172 # git config --global --add safe.directory ${work_dir}
7273 tar -xf PaddleCustomDevice.tar.gz --strip-components=1
73- git fetch origin pull/${PR_ID}/merge
74- git checkout -b test FETCH_HEAD
74+ git remote add upstream https://github.com/PaddlePaddle/PaddleCustomDevice.git
75+ git merge ${BRANCH} --no-edit
76+ git log --pretty=oneline -20
7577
76- - name : Setup python3.12
77- if : steps.check-bypass.outputs.can-skip != 'true'
78- uses : actions/setup-python@v5
79- with :
80- python-version : ' 3.12'
81- cache : ' pip'
82-
83- - name : Install dependencies
84- if : steps.check-bypass.outputs.can-skip != 'true'
85- run : |
86- pip install pre-commit==2.17.0 cpplint==1.6.0 clang-format==13.0.0
87-
88- - name : Check pre-commit
89- if : steps.check-bypass.outputs.can-skip != 'true'
90- env :
91- SKIP_CLANG_TIDY_CHECK : " ON"
92- run : |
93- set +e
94- bash -x tools/codestyle/pre_commit.sh;EXCODE=$?
95- exit $EXCODE
78+ pip install cpplint==1.6.0
79+ pre-commit install
80+ bash tools/codestyle/pre_commit.sh '
0 commit comments