mirror of
https://github.com/PaddlePaddle/PaddleOCR.git
synced 2025-06-03 21:53:39 +08:00
* add ci for paddleocr test * fix flake8 error * fix paddlepaddle deps * add dep * fix * move flake8 to pre-commit * update ut * fix bug * fix bug set paddlepaddle==2.5 * fix bug * fix bug * fix bug * update test * remove lscpu
24 lines
536 B
YAML
24 lines
536 B
YAML
name: PaddleOCR Code Style Check
|
|
|
|
on:
|
|
pull_request:
|
|
push:
|
|
branches: ['main', 'release/*']
|
|
|
|
jobs:
|
|
check-code-style:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
with:
|
|
ref: ${{ github.ref }}
|
|
- uses: actions/setup-python@v5
|
|
with:
|
|
python-version: '3.10'
|
|
# Install Dependencies for Python
|
|
- name: Install Dependencies for Python
|
|
run: |
|
|
python -m pip install --upgrade pip
|
|
pip install "clang-format==13.0.0"
|
|
- uses: pre-commit/action@v3.0.1
|