Skip to content

Commit

Permalink
Add cli test
Browse files Browse the repository at this point in the history
  • Loading branch information
VikParuchuri committed Jan 28, 2025
1 parent 80219ab commit 49831fb
Show file tree
Hide file tree
Showing 6 changed files with 36 additions and 9 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
pip install poetry
poetry install
- name: Run detection benchmark test
- name: Run benchmark
run: |
poetry run python benchmark.py --max 5 --result_path results --pdftext_only
poetry run python scripts/verify_benchmark_scores.py results/results.json
poetry run python benchmark/benchmark.py --max 5 --result_path results --pdftext_only
poetry run python benchmark/verify_benchmark_scores.py results/results.json
27 changes: 27 additions & 0 deletions .github/workflows/scripts.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Script test

on: [push]

env:
TORCH_DEVICE: "cpu"

jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
steps:
- uses: actions/checkout@v3

- name: Set up Python 3.11
uses: actions/setup-python@v4
with:
python-version: 3.11
- name: Install Python dependencies
run: |
pip install poetry
poetry install
- name: Run script
run: |
poetry run pdftext benchmark/adversarial_short.pdf
Binary file added benchmark/adversarial_short.pdf
Binary file not shown.
File renamed without changes.
File renamed without changes.
12 changes: 6 additions & 6 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 49831fb

Please sign in to comment.