File tree Expand file tree Collapse file tree 4 files changed +52
-14
lines changed Expand file tree Collapse file tree 4 files changed +52
-14
lines changed Original file line number Diff line number Diff line change @@ -27,30 +27,37 @@ jobs:
27
27
with :
28
28
python-version : ${{ matrix.python-version }}
29
29
- uses : actions/checkout@v3
30
-
30
+
31
31
- name : Install Tesseract OCR
32
32
run : |
33
+ sudo apt-get update
34
+ sudo apt-get install -y software-properties-common
35
+ sudo add-apt-repository -y ppa:alex-p/tesseract-ocr-devel
33
36
sudo apt-get update
34
37
sudo apt-get install -y tesseract-ocr
38
+ sudo apt-get install -y libtesseract-dev
35
39
tesseract --version
36
-
40
+ dpkg -l | grep tesseract
41
+
37
42
- name : Verify Tesseract Installation
38
- run : which tesseract
39
-
43
+ run : |
44
+ which tesseract
45
+ tesseract --list-langs
46
+
40
47
- name : Update PATH
41
48
run : echo "export PATH=$PATH:/usr/bin" >> $GITHUB_ENV
42
-
49
+
43
50
- name : Install dependencies and run tests
44
51
run : |
45
52
pip install tox
46
53
tox -- --cov datafog --cov-report xml --cov-report term
47
-
54
+
48
55
- name : Submit to codecov
49
56
uses : codecov/codecov-action@v3
50
57
if : ${{ matrix.python-version == '3.10' }}
51
-
58
+
52
59
- name : Upload coverage reports to Codecov
53
60
uses : codecov/codecov-action@v4.0.1
54
61
env :
55
62
token : ${{ secrets.CODECOV_TOKEN }}
56
- slug : DataFog/datafog-python
63
+ slug : DataFog/datafog-python
Original file line number Diff line number Diff line change @@ -30,14 +30,23 @@ jobs:
30
30
31
31
- name : Install Tesseract OCR
32
32
run : |
33
- sudo apt-get update && sudo apt-get install -y tesseract
33
+ sudo apt-get update
34
+ sudo apt-get install -y software-properties-common
35
+ sudo add-apt-repository -y ppa:alex-p/tesseract-ocr-devel
36
+ sudo apt-get update
37
+ sudo apt-get install -y tesseract-ocr
38
+ sudo apt-get install -y libtesseract-dev
39
+ tesseract --version
40
+ dpkg -l | grep tesseract
34
41
35
42
- name : Verify Tesseract Installation
36
- run : which tesseract
37
-
43
+ run : |
44
+ which tesseract
45
+ tesseract --list-langs
46
+
38
47
- name : Update PATH
39
48
run : echo "export PATH=$PATH:/usr/bin" >> $GITHUB_ENV
40
-
49
+
41
50
- name : Test with tox
42
51
run : |
43
52
pip install tox
Original file line number Diff line number Diff line change @@ -28,13 +28,33 @@ jobs:
28
28
python-version : ${{ matrix.python-version }}
29
29
30
30
- uses : actions/checkout@v3
31
- - name : Test with tox
31
+ - name : Install Tesseract OCR
32
+ run : |
33
+ sudo apt-get update
34
+ sudo apt-get install -y software-properties-common
35
+ sudo add-apt-repository -y ppa:alex-p/tesseract-ocr-devel
36
+ sudo apt-get update
37
+ sudo apt-get install -y tesseract-ocr
38
+ sudo apt-get install -y libtesseract-dev
39
+ tesseract --version
40
+ dpkg -l | grep tesseract
41
+
42
+ - name : Verify Tesseract Installation
43
+ run : |
44
+ which tesseract
45
+ tesseract --list-langs
46
+
47
+ - name : Update PATH
48
+ run : echo "export PATH=$PATH:/usr/bin" >> $GITHUB_ENV
49
+
50
+ - name : Install dependencies and run tests
32
51
run : |
33
52
pip install tox
34
53
tox -- --cov datafog --cov-report xml --cov-report term
54
+
35
55
- name : Submit to codecov
36
56
uses : codecov/codecov-action@v3
37
- if : ${{ matrix.python-version == '3.11 ' }}
57
+ if : ${{ matrix.python-version == '3.10 ' }}
38
58
39
59
- name : Upload coverage reports to Codecov
40
60
uses : codecov/codecov-action@v4.0.1
Original file line number Diff line number Diff line change 11
11
extras = all
12
12
commands =
13
13
pytest {posargs} --codeblocks
14
+ tesseract --version
15
+
You can’t perform that action at this time.
0 commit comments