Skip to content

Commit bdda488

Browse files
authored
Merge pull request #284 from VikParuchuri/dev
Add ci workflow
2 parents 2e50631 + bd53085 commit bdda488

File tree

5 files changed

+300
-528
lines changed

5 files changed

+300
-528
lines changed

.github/workflows/scripts.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
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

0 commit comments

Comments
 (0)