Skip to content

Recovered 3.2.2

Recovered 3.2.2 #1

Workflow file for this run

name: main-cicd-tests
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Check out repo
uses: actions/checkout@v3
- name: Run pre-commit
uses: pre-commit/action@v3.0.0
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.10", "3.11"]
steps:
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- uses: actions/checkout@v3
- name: Install Tesseract OCR
run: |
sudo apt-get update
sudo apt-get install -y software-properties-common
sudo add-apt-repository -y ppa:alex-p/tesseract-ocr-devel
sudo apt-get update
sudo apt-get install -y tesseract-ocr
sudo apt-get install -y libtesseract-dev
tesseract --version
dpkg -l | grep tesseract
- name: Verify Tesseract Installation
run: |
which tesseract
tesseract --list-langs
- 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