File tree 2 files changed +31
-1
lines changed
2 files changed +31
-1
lines changed Original file line number Diff line number Diff line change 8
8
jobs :
9
9
check-code-style :
10
10
runs-on : ubuntu-latest
11
+
11
12
steps :
12
13
- uses : actions/checkout@v4
13
14
with :
14
15
ref : ${{ github.ref }}
16
+
15
17
- uses : actions/setup-python@v5
16
18
with :
17
19
python-version : ' 3.10'
18
- # Install Dependencies for Python
20
+
21
+ - name : Cache Python dependencies
22
+ uses : actions/cache@v4
23
+ with :
24
+ path : ~/.cache/pip
25
+ key : ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
26
+ restore-keys : |
27
+ ${{ runner.os }}-pip-
28
+
19
29
- name : Install Dependencies for Python
20
30
run : |
21
31
python -m pip install --upgrade pip
22
32
pip install "clang-format==13.0.0"
33
+
23
34
- uses : pre-commit/action@v3.0.1
35
+ with :
36
+ extra_args : ' --all-files'
Original file line number Diff line number Diff line change 29
29
uses : actions/setup-python@v5
30
30
with :
31
31
python-version : " 3.10"
32
+
33
+ - name : Cache Python dependencies
34
+ uses : actions/cache@v4
35
+ with :
36
+ path : ~/.cache/pip
37
+ key : ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
38
+ restore-keys : |
39
+ ${{ runner.os }}-pip-
40
+
41
+ - name : Cache PaddleOCR files
42
+ uses : actions/cache@v4
43
+ with :
44
+ path : ~/.paddleocr/
45
+ key : ${{ runner.os }}-paddleocr-${{ hashFiles('**/paddleocr.py') }}
46
+ restore-keys : |
47
+ ${{ runner.os }}-paddleocr-
48
+
32
49
- name : Install dependencies
33
50
run : |
34
51
python -m pip install --upgrade pip
You can’t perform that action at this time.
0 commit comments