Install click with previous spaCy in upgrade test

spacy <=3.8.14 imports click without declaring it (#13971), and modern
typer no longer depends on click, so the pre-upgrade install fails on
import without it.
This commit is contained in:
Matthew Honnibal
2026-08-07 13:44:28 +02:00
parent 29bc4f2a5a
commit f69c32f7a0
+4 -2
View File
@@ -78,8 +78,10 @@ jobs:
- name: Install previous spaCy version
run: |
# strip the release-v/prerelease-v prefix to get a version specifier
pip install "spacy>=3.8.0,<${GITHUB_REF_NAME##*-v}" || pip install "spacy<4"
# strip the release-v/prerelease-v prefix to get a version specifier;
# click is needed because spacy <=3.8.14 imports it without
# declaring it (#13971) and modern typer no longer pulls it in
pip install "spacy>=3.8.0,<${GITHUB_REF_NAME##*-v}" click || pip install "spacy<4" click
python -m spacy download en_core_web_sm
python -c "
import spacy