Skip to content

Commit fcccb1f

Browse files
Sid MohanSid Mohan
authored andcommitted
updated main-cicd, dev-cicd
1 parent 72ebad4 commit fcccb1f

File tree

4 files changed

+52
-14
lines changed

4 files changed

+52
-14
lines changed

.github/workflows/dev-cicd.yml

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -27,30 +27,37 @@ jobs:
2727
with:
2828
python-version: ${{ matrix.python-version }}
2929
- uses: actions/checkout@v3
30-
30+
3131
- name: Install Tesseract OCR
3232
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
3336
sudo apt-get update
3437
sudo apt-get install -y tesseract-ocr
38+
sudo apt-get install -y libtesseract-dev
3539
tesseract --version
36-
40+
dpkg -l | grep tesseract
41+
3742
- name: Verify Tesseract Installation
38-
run: which tesseract
39-
43+
run: |
44+
which tesseract
45+
tesseract --list-langs
46+
4047
- name: Update PATH
4148
run: echo "export PATH=$PATH:/usr/bin" >> $GITHUB_ENV
42-
49+
4350
- name: Install dependencies and run tests
4451
run: |
4552
pip install tox
4653
tox -- --cov datafog --cov-report xml --cov-report term
47-
54+
4855
- name: Submit to codecov
4956
uses: codecov/codecov-action@v3
5057
if: ${{ matrix.python-version == '3.10' }}
51-
58+
5259
- name: Upload coverage reports to Codecov
5360
uses: codecov/codecov-action@v4.0.1
5461
env:
5562
token: ${{ secrets.CODECOV_TOKEN }}
56-
slug: DataFog/datafog-python
63+
slug: DataFog/datafog-python

.github/workflows/feature-cicd.yml

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,23 @@ jobs:
3030

3131
- name: Install Tesseract OCR
3232
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
3441
3542
- name: Verify Tesseract Installation
36-
run: which tesseract
37-
43+
run: |
44+
which tesseract
45+
tesseract --list-langs
46+
3847
- name: Update PATH
3948
run: echo "export PATH=$PATH:/usr/bin" >> $GITHUB_ENV
40-
49+
4150
- name: Test with tox
4251
run: |
4352
pip install tox

.github/workflows/main-cicd-tests.yml renamed to .github/workflows/main-cicd.yml

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,33 @@ jobs:
2828
python-version: ${{ matrix.python-version }}
2929

3030
- 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
3251
run: |
3352
pip install tox
3453
tox -- --cov datafog --cov-report xml --cov-report term
54+
3555
- name: Submit to codecov
3656
uses: codecov/codecov-action@v3
37-
if: ${{ matrix.python-version == '3.11' }}
57+
if: ${{ matrix.python-version == '3.10' }}
3858

3959
- name: Upload coverage reports to Codecov
4060
uses: codecov/codecov-action@v4.0.1

tox.ini

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,5 @@ deps =
1111
extras = all
1212
commands =
1313
pytest {posargs} --codeblocks
14+
tesseract --version
15+

0 commit comments

Comments
 (0)