fix(ci): bootstrap isolated parser pip
CI and Deploy / test (push) Failing after 2m5s
CI and Deploy / deploy (push) Has been skipped

This commit is contained in:
cesnimda
2026-08-31 22:07:17 +02:00
parent 14c5dd58d7
commit 789f30b6e6
+6 -5
View File
@@ -70,14 +70,15 @@ jobs:
- name: Test document parser boundary
working-directory: tools/summarizer
run: |
# The Debian runner has pip but intentionally omits python3-venv.
# Install into the checkout so CI remains isolated without sudo or a
# mutable runner-global Python environment.
# The Debian runner omits pip and python3-venv. Use pip's official
# zipapp and install into the checkout so CI remains isolated without
# sudo or a mutable runner-global Python environment.
rm -rf .python-ci
python3 -m pip install --target .python-ci --require-hashes \
curl -fsSLo /tmp/pip.pyz https://bootstrap.pypa.io/pip/pip.pyz
python3 /tmp/pip.pyz install --target .python-ci --require-hashes \
--extra-index-url https://download.pytorch.org/whl/cpu \
-r requirements-linux.lock
python3 -m pip install --target .python-ci pytest==8.3.5 httpx2==2.12.0
python3 /tmp/pip.pyz install --target .python-ci pytest==8.3.5 httpx2==2.12.0
PYTHONPATH="$PWD/.python-ci" AI_SERVICE_SKIP_MODEL_LOAD=1 python3 -m pytest -q
- name: Restore backend