Files
paddlepaddle--paddleocr/.github/workflows/codestyle.yml
T
wehub-resource-sync e904b667c6
PaddleOCR PR Tests GPU / test-pr-gpu (push) Blocked by required conditions
PaddleOCR PR Tests / test-pr (push) Blocked by required conditions
PaddleOCR PR Tests / test-pr-python (3.8) (push) Waiting to run
Build/Publish Develop Docs / deploy (push) Failing after 1s
PaddleOCR Code Style Check / check-code-style (push) Failing after 1s
PaddleOCR PR Tests GPU / detect-changes (push) Failing after 1s
PaddleOCR PR Tests GPU / test-pr-gpu-impl (push) Waiting to run
PaddleOCR PR Tests / detect-changes (push) Failing after 1s
PaddleOCR PR Tests / test-pr-python (3.13) (push) Waiting to run
PaddleOCR PR Tests / test-pr-python (3.9) (push) Waiting to run
chore: import upstream snapshot with attribution
2026-07-13 11:59:26 +08:00

42 lines
1.3 KiB
YAML

name: PaddleOCR Code Style Check
# NOTE: Job name `check-code-style` is the required status check context
# configured in branch protection. Do not rename without updating settings.
on:
pull_request: {}
push:
branches: ['main', 'release/*']
jobs:
check-code-style:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
with:
ref: ${{ github.ref }}
fetch-depth: 0
- id: detect
uses: ./.github/actions/detect-docs-only
- uses: actions/setup-python@v6
if: steps.detect.outputs.docs_only != 'true'
with:
python-version: '3.10'
- name: Cache Python dependencies
if: steps.detect.outputs.docs_only != 'true'
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
if: steps.detect.outputs.docs_only != 'true'
run: |
python -m pip install --upgrade pip
pip install "clang-format==13.0.0"
- uses: pre-commit/action@2c7b3805fd2a0fd8c1884dcaebf91fc102a13ecd # v3.0.1
if: steps.detect.outputs.docs_only != 'true'
with:
extra_args: '--all-files'