Skip to content

Commit

Permalink
+ tesseract install dev-cicd
Browse files Browse the repository at this point in the history
  • Loading branch information
Sid Mohan authored and Sid Mohan committed Jul 13, 2024
1 parent 298c152 commit 1069669
Showing 1 changed file with 19 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: dev-cicd-tests
name: dev-cicd-setup-and-test

on:
push:
Expand All @@ -17,7 +17,7 @@ jobs:
- name: Run pre-commit
uses: pre-commit/action@v3.0.1

build:
build-and-test:
runs-on: ubuntu-latest
strategy:
matrix:
Expand All @@ -27,16 +27,30 @@ jobs:
with:
python-version: ${{ matrix.python-version }}
- uses: actions/checkout@v3
- name: Test with tox

- name: Install Tesseract OCR
run: |
sudo apt-get update
sudo apt-get install -y tesseract-ocr
tesseract --version
- name: Verify Tesseract Installation
run: which tesseract

- name: Update PATH
run: echo "export PATH=$PATH:/usr/bin" >> $GITHUB_ENV

- name: Install dependencies and run tests
run: |
pip install tox
tox -- --cov datafog --cov-report xml --cov-report term
- name: Submit to codecov
uses: codecov/codecov-action@v3
if: ${{ matrix.python-version == '3.10' }}

- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v4.0.1
env:
token: ${{ secrets.CODECOV_TOKEN }}
slug: DataFog/datafog-python
slug: DataFog/datafog-python

0 comments on commit 1069669

Please sign in to comment.