From b3024e1709b090810e3af2920c017a06414bea87 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 87297db..aadd890 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 e0ef2039af75e85434666300b87d487f6800c07f 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 aadd890..f623cea 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 9740f1c429ac0223ef7ef86af8923d1b4878d654 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 93fd7c67a3cded840c0c392fbcea45004d4b1599 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 f623cea..44a1da4 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 983bdc004c39439360a293fdf55cef3215a9a171 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 44a1da4..2d0c7ee 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