Skip to content

Bump jinja2 from 3.1.4 to 3.1.5 in /OCR #101

Bump jinja2 from 3.1.4 to 3.1.5 in /OCR

Bump jinja2 from 3.1.4 to 3.1.5 in /OCR #101

name: OCR Poetry Benchmark Tests
on:
pull_request:
paths:
- .github/workflows/ocr-benchmarks.yml
- OCR/**
push:
branches:
- main
paths:
- .github/workflows/ocr-benchmarks.yml
- OCR/**
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.10"
- name: Install dependencies
run: |
sudo apt update && sudo apt install tesseract-ocr-eng tesseract-ocr
cd OCR/tests
python -m pip install --upgrade pip
pip install poetry
pip install pytest pytest-benchmark
poetry install --with dev --with torch
- name: Run tests
run: |
cd OCR/tests
poetry run pytest benchmark_test.py -v --benchmark-json output.json