-
Notifications
You must be signed in to change notification settings - Fork 10k
41 lines (33 loc) · 887 Bytes
/
codestyle.yml
File metadata and controls
41 lines (33 loc) · 887 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: PaddleOCR Code Style Check
on:
pull_request:
push:
branches: ['main', 'release/*']
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@v3.0.1
with:
extra_args: '--all-files'
- name: Type check with mypy
run: |
pip install mypy numpy
mypy paddleocr/