Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 14 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,12 @@ jobs:
fail-fast: true
matrix:
python: [3.12, 3.13]

services:
pdfact:
image: ghcr.io/data-house/pdfact:main
ports:
- 4567:4567

steps:
- uses: actions/checkout@v6
Expand All @@ -35,6 +41,13 @@ jobs:

- name: Pull dependencies
run: uv sync --all-extras --all-groups


- name: Create .env file with fake API keys
run: |
echo "PARXY_LANDINGAI_API_KEY=$(openssl rand -hex 16)" >> .env
echo "PARXY_LLAMAPARSE_API_KEY=$(openssl rand -hex 16)" >> .env

- name: Execute tests
env:
PARXY_PDFACT_BASE_URL: 'http://127.0.0.1:4567/'
run: uv run pytest
4 changes: 0 additions & 4 deletions tests/drivers/test_pdfact.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,6 @@
from parxy_core.models import PdfActConfig


@pytest.mark.skipif(
os.getenv('GITHUB_ACTIONS') == 'true',
reason='External service required, skipping tests in GitHub Actions.',
)
class TestPdfActDriver:
def __fixture_path(self, file: str) -> str:
current_dir = os.path.dirname(os.path.abspath(__file__))
Expand Down
8 changes: 0 additions & 8 deletions tests/test_factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,10 +97,6 @@ def test_pdfact_driver_instantiated(self):
driver = DriverFactory.build().driver('pdfact')
assert isinstance(driver, PdfActDriver)

@pytest.mark.skipif(
os.getenv('GITHUB_ACTIONS') == 'true',
reason='External service required, skipping tests in GitHub Actions.',
)
def test_llamaparse_driver_instantiated(self):
DriverFactory.reset()
driver = DriverFactory.build().driver('llamaparse')
Expand All @@ -116,10 +112,6 @@ def test_unstructured_local_driver_instantiated(self):
driver = DriverFactory.build().driver('unstructured_local')
assert isinstance(driver, UnstructuredLocalDriver)

@pytest.mark.skipif(
os.getenv('GITHUB_ACTIONS') == 'true',
reason='External service required, skipping tests in GitHub Actions.',
)
def test_landingai_driver_instantiated(self):
DriverFactory.reset()
driver = DriverFactory.build().driver('landingai')
Expand Down