File tree Expand file tree Collapse file tree 5 files changed +300
-528
lines changed Expand file tree Collapse file tree 5 files changed +300
-528
lines changed Original file line number Diff line number Diff line change 1+ name : Test CLI scripts
2+
3+ on : [push]
4+
5+ env :
6+ TORCH_DEVICE : " cpu"
7+
8+ jobs :
9+ build :
10+ runs-on : ubuntu-latest
11+ steps :
12+ - uses : actions/checkout@v3
13+ - name : Set up Python 3.11
14+ uses : actions/setup-python@v4
15+ with :
16+ python-version : 3.11
17+ - name : Install python dependencies
18+ run : |
19+ pip install poetry
20+ poetry install
21+ - name : Download benchmark data
22+ run : |
23+ wget -O benchmark_data.zip "https://drive.google.com/uc?export=download&id=1NHrdYatR1rtqs2gPVfdvO0BAvocH8CJi"
24+ unzip -o benchmark_data.zip
25+ - name : Test detection
26+ run : poetry run surya_detect benchmark_data/pdfs/switch_trans.pdf --page_range 0
27+ - name : Test OCR
28+ run : poetry run surya_ocr benchmark_data/pdfs/switch_trans.pdf --page_range 0
29+ - name : Test layout
30+ run : poetry run surya_layout benchmark_data/pdfs/switch_trans.pdf --page_range 0
31+ - name : Test table
32+ run : poetry run surya_table benchmark_data/pdfs/switch_trans.pdf --page_range 0
You can’t perform that action at this time.
0 commit comments