From 63122cae536d8e31928825e8fab410065b01f346 Mon Sep 17 00:00:00 2001 From: Advait Jayant Date: Tue, 23 Jun 2026 21:01:25 +0100 Subject: [PATCH 1/2] CI: install spacy explicitly so 'spacy download' has its CLI deps The tests job failed at the model-download step with ModuleNotFoundError: click -- presidio pulls spacy as a library but not its CLI extras (typer/click), so 'python -m spacy download' couldn't run. Install spacy explicitly. --- .github/workflows/test.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 483200f..798d76b 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -14,7 +14,9 @@ jobs: with: python-version: "3.11" - name: Install deps - run: pip install pytest httpx presidio-analyzer presidio-anonymizer + # spacy explicit so its CLI deps (typer/click) are present for `spacy download`; + # presidio pulls spacy as a lib but not always the CLI extras. + run: pip install pytest httpx spacy presidio-analyzer presidio-anonymizer - name: Download spaCy model run: python -m spacy download en_core_web_md - name: Run scrubber tests (incl. golden leak canary) From adf5432be42321dc0cbd1193457277b2117a128f Mon Sep 17 00:00:00 2001 From: Advait Jayant Date: Tue, 23 Jun 2026 21:03:10 +0100 Subject: [PATCH 2/2] CI: install click + typer explicitly for spacy download spacy add alone didn't resolve click in CI; spacy's download CLI is typer/click- based, so install both explicitly. --- .github/workflows/test.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 798d76b..84fd1b5 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -14,9 +14,9 @@ jobs: with: python-version: "3.11" - name: Install deps - # spacy explicit so its CLI deps (typer/click) are present for `spacy download`; - # presidio pulls spacy as a lib but not always the CLI extras. - run: pip install pytest httpx spacy presidio-analyzer presidio-anonymizer + # click + typer explicit: spacy's `download` CLI is typer/click-based but presidio's + # dependency resolution doesn't always pull them, so `spacy download` ModuleNotFound's. + run: pip install pytest httpx spacy click typer presidio-analyzer presidio-anonymizer - name: Download spaCy model run: python -m spacy download en_core_web_md - name: Run scrubber tests (incl. golden leak canary)