Update version number #26
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Code Style Check | |
on: | |
pull_request: | |
branches: [ "develop" ] | |
jobs: | |
pre-commit: | |
name: pre-commit | |
runs-on: ubuntu-latest | |
env: | |
PR_ID: ${{ github.event.pull_request.number }} | |
BRANCH: develop | |
steps: | |
- name: Checkout Base Branch | |
uses: actions/checkout@v4 | |
with: | |
ref: ${{ github.event.pull_request.base.ref }} | |
fetch-depth: 1000 | |
- name: Merge PR | |
run: | | |
git config --global user.name "Paddle2onnxCI" | |
git config --global user.email "Paddle2onnxCI@example.com" | |
git fetch origin pull/${PR_ID}/merge | |
git checkout -b test FETCH_HEAD | |
- name: Setup Python3.12 | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.12' | |
cache: 'pip' | |
- name: Install Dependencies | |
run: | | |
pip install pre-commit==2.17.0 cpplint==1.6.0 clang-format==13.0.0 | |
- name: Run Pre-commit | |
env: | |
SKIP_CLANG_TIDY_CHECK: "ON" | |
run: | | |
set +e | |
bash -x tools/codestyle/pre_commit.sh;EXCODE=$? | |
exit $EXCODE |