Imene-ee's picture
Upload 19 files
dab7db2 verified
Raw History Blame Contribute Delete
731 Bytes
name: tests
on:
push:
pull_request:
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: System packages (OCR + PDF tools)
run: |
sudo apt-get update
sudo apt-get install -y tesseract-ocr tesseract-ocr-eng tesseract-ocr-fra tesseract-ocr-ara poppler-utils fonts-dejavu-core
- uses: actions/setup-python@v5
with:
python-version: "3.12"
- run: pip install -r requirements.txt pytest
- run: pytest -q
- name: Mini benchmark (20 reports)
run: |
python -m lablens.synth.generator --out /tmp/bench -n 20 --seed 1000
python -m lablens.evaluate --bench /tmp/bench --out /tmp/results.json