Bump jinja2 from 3.1.4 to 3.1.5 in /OCR #101
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |