From f080bbf292e23a1ba22d6f68b9a30e660948fbeb Mon Sep 17 00:00:00 2001 From: Alessio Vertemati Date: Tue, 20 Jan 2026 19:10:36 +0100 Subject: [PATCH 1/5] wip: Execute PdfAct tests --- .github/workflows/ci.yml | 8 ++++++++ tests/drivers/test_pdfact.py | 4 ---- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9f46306..bb7bb68 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 steps: - uses: actions/checkout@v6 @@ -37,4 +43,6 @@ jobs: run: uv sync --all-extras --all-groups - name: Execute tests + env: + PARXY_PDFACT_BASE_URL: 'http://pdfact:4567/' run: uv run pytest diff --git a/tests/drivers/test_pdfact.py b/tests/drivers/test_pdfact.py index 95a8e83..083b66d 100644 --- a/tests/drivers/test_pdfact.py +++ b/tests/drivers/test_pdfact.py @@ -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__)) From 0d3c6bfc18f67fe0a75a65f68ceca480065057dd Mon Sep 17 00:00:00 2001 From: Alessio Vertemati Date: Tue, 20 Jan 2026 19:16:56 +0100 Subject: [PATCH 2/5] wip: attempt with port --- .github/workflows/ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index bb7bb68..a00e7a3 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -26,7 +26,7 @@ jobs: pdfact: image: ghcr.io/data-house/pdfact:main ports: - - 4567 + - 4567:4567 steps: - uses: actions/checkout@v6 @@ -44,5 +44,5 @@ jobs: - name: Execute tests env: - PARXY_PDFACT_BASE_URL: 'http://pdfact:4567/' + PARXY_PDFACT_BASE_URL: 'http://127.0.0.1:4567/' run: uv run pytest From b9c5d6cd33bb34ef9fb841c4fa071592bd999f5f Mon Sep 17 00:00:00 2001 From: Alessio Vertemati Date: Tue, 20 Jan 2026 19:20:47 +0100 Subject: [PATCH 3/5] wip: check why driver instantion fails in ci --- tests/test_factory.py | 8 -------- 1 file changed, 8 deletions(-) diff --git a/tests/test_factory.py b/tests/test_factory.py index a195f56..5a3b1b7 100644 --- a/tests/test_factory.py +++ b/tests/test_factory.py @@ -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') @@ -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') From 393a90f8233e85d54e88a7617552b527ea3b0d50 Mon Sep 17 00:00:00 2001 From: Alessio Vertemati Date: Tue, 20 Jan 2026 20:21:53 +0100 Subject: [PATCH 4/5] wip --- .github/workflows/ci.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a00e7a3..0180770 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -41,7 +41,12 @@ jobs: - name: Pull dependencies run: uv sync --all-extras --all-groups - + + - name: Create .env file with fakse 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/' From f7aa2f79ca1a74929e23dd4310b7af7c0202780b Mon Sep 17 00:00:00 2001 From: Alessio Vertemati Date: Tue, 20 Jan 2026 20:24:10 +0100 Subject: [PATCH 5/5] typo --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0180770..5522884 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -42,7 +42,7 @@ jobs: - name: Pull dependencies run: uv sync --all-extras --all-groups - - name: Create .env file with fakse API keys + - 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