Files
PaddleOCR/.github/workflows/codestyle.yml
T
SWHL 1af0448a20 docs: fix formula rendering issue and optimize ci ignore rule (#18184)
* docs: fix formula rendering issue

* ci: add paths-ignore

* ci: optimize ignore rule

* ci: optimize ignore rule

* ci: fix paddlex version error

* chore: add new line
2026-06-22 12:17:39 +08:00

45 lines
970 B
YAML

name: PaddleOCR Code Style Check
on:
pull_request:
paths-ignore:
- docs/**
- '**/*.md'
- .github/**
push:
branches: ['main', 'release/*']
paths-ignore:
- docs/**
- '**/*.md'
- .github/**
jobs:
check-code-style:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
with:
ref: ${{ github.ref }}
- uses: actions/setup-python@v6
with:
python-version: '3.10'
- name: Cache Python dependencies
uses: actions/cache@v5
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Install Dependencies for Python
run: |
python -m pip install --upgrade pip
pip install "clang-format==13.0.0"
- uses: pre-commit/action@2c7b3805fd2a0fd8c1884dcaebf91fc102a13ecd # v3.0.1
with:
extra_args: '--all-files'