Skip to content

Commit

Permalink
add pytest dev dep, and add CI test workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
iammosespaulr committed Nov 18, 2024
1 parent 4a08718 commit 9a793c8
Show file tree
Hide file tree
Showing 4 changed files with 78 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: Integration test with benchmark

on: [push]
on: [] # re-enable after integration

env:
TORCH_DEVICE: "cpu"
Expand Down
25 changes: 25 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: CI tests

on: [push]

env:
TORCH_DEVICE: "cpu"
OCR_ENGINE: "surya"

jobs:
tests:
runs-on: ubuntu-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 tests
env:
HF_TOKEN: ${{ secrets.HF_TOKEN }}
run: poetry run pytest
54 changes: 51 additions & 3 deletions poetry.lock

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

1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ streamlit = "^1.37.1"
fastapi = "^0.115.4"
uvicorn = "^0.32.0"
python-multipart = "^0.0.16"
pytest = "^8.3.3"

[tool.poetry.scripts]
marker = "convert:main"
Expand Down

0 comments on commit 9a793c8

Please sign in to comment.