Skip to content

Temp update cicd #35

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jul 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
50 changes: 26 additions & 24 deletions .github/workflows/dev-cicd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,56 +8,58 @@ on:
branches:
- dev


jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Check out repo
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.10"
- name: Install pre-commit
run: pip install pre-commit
- name: Run pre-commit
uses: pre-commit/action@v3.0.1
run: pre-commit run --all-files

build-and-test:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.10"]
steps:
- uses: actions/setup-python@v4
- name: Check out repo
uses: actions/checkout@v4
- name: Set up Python
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
sudo apt-get install -y tesseract-ocr 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
- name: Install Dependencies
run: |
pip install tox
tox -- --cov datafog --cov-report xml --cov-report term

- name: Submit to codecov
pip install -U pip
pip install -e .
pip install tox just pre-commit
- name: Run Tests with tox
run: tox -- --cov datafog --cov-report xml --cov-report term --codeblocks
- 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:
with:
token: ${{ secrets.CODECOV_TOKEN }}
slug: DataFog/datafog-python
files: ./coverage.xml
flags: unittests
name: codecov-umbrella
4 changes: 2 additions & 2 deletions .github/workflows/feature-cicd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Check out repo
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
Expand All @@ -30,7 +30,7 @@ jobs:
python-version: ["3.10"]
steps:
- name: Check out repo
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
Expand Down
50 changes: 26 additions & 24 deletions .github/workflows/main-cicd.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: main-cicd-tests
name: main-cicd-setup-and-test

on:
push:
Expand All @@ -8,56 +8,58 @@ on:
branches:
- main


jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Check out repo
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.10"
- name: Install pre-commit
run: pip install pre-commit
- name: Run pre-commit
uses: pre-commit/action@v3.0.0
run: pre-commit run --all-files

build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.10"]
steps:
- uses: actions/setup-python@v4
- name: Check out repo
uses: actions/checkout@v4
- name: Set up Python
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
sudo apt-get install -y tesseract-ocr 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
- name: Install Dependencies
run: |
pip install tox
tox -- --cov datafog --cov-report xml --cov-report term

- name: Submit to codecov
pip install -U pip
pip install -e .
pip install tox just pre-commit
- name: Run Tests with tox
run: tox -- --cov datafog --cov-report xml --cov-report term --codeblocks
- 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:
with:
token: ${{ secrets.CODECOV_TOKEN }}
slug: DataFog/datafog-python
files: ./coverage.xml
flags: unittests
name: codecov-umbrella