A fast, helpful, and open-source document parser
ci: add validation action
Clelia (Astra) Bertelli77455cf7a6d7
diff --git a/.github/workflows/ocr_servers.yml b/.github/workflows/ocr_servers.ymlnew file mode 100644index 0000000..27889a4--- /dev/null+++ b/.github/workflows/ocr_servers.yml@@ -0,0 +1,45 @@+name: Validate OCR Servers++on:+ pull_request:++jobs:+ testing_paddleocr:+ runs-on: ubuntu-latest+ strategy:+ matrix:+ python-version: ["3.12"]+ steps:+ - uses: actions/checkout@v4+ with:+ fetch-depth: 1++ - name: Install uv+ uses: astral-sh/setup-uv@v6+ with:+ python-version: ${{ matrix.python-version }}+ enable-cache: true++ - name: Run Tests on Main Package+ run: uv run pytest test_server.py+ working-directory: ocr/paddleocr/++ testing_easyocr:+ runs-on: ubuntu-latest+ strategy:+ matrix:+ python-version: ["3.12"]+ steps:+ - uses: actions/checkout@v4+ with:+ fetch-depth: 1++ - name: Install uv+ uses: astral-sh/setup-uv@v6+ with:+ python-version: ${{ matrix.python-version }}+ enable-cache: true++ - name: Run Tests on Main Package+ run: uv run pytest test_server.py+ working-directory: ocr/easyocr/