CI: let pip install the pinned Pillow into the externally managed runner Python (#102)
build / mod (push) Failing after 39s

Since 2 November build.yml has failed before its first test: gen_models.py
--check needs Pillow, and python3 -m pip install --user refuses the system
Python of the catthehacker/ubuntu:act-latest image (PEP 668,
externally-managed-environment). The job container is disposable, so
--break-system-packages with --user is safe here.

No step order or limit changes; the checkout, fork and Rust steps already
passed and are untouched.
This commit is contained in:
2026-11-23 21:56:22 +03:00
parent 6616d58a3e
commit 5ac72287f4
+3 -1
View File
@@ -32,9 +32,11 @@ jobs:
run: nice -n 19 python3 tools/airdef.py fork
- name: Проверка закреплённого checkout
run: python3 -m unittest discover -s tools -p test_engine_checkout.py
# Системный Python образа — externally managed (PEP 668): без --break-system-packages pip отказывает,
# и тесты со сборкой ниже вообще не запускаются. Контейнер задачи одноразовый, так что --user безопасен.
- name: Проверка generated assets
run: |
python3 -m pip install --user -r tools/requirements.txt
python3 -m pip install --user --break-system-packages -r tools/requirements.txt
python3 tools/gen_catalog.py --check
python3 -m unittest discover -s tools -p test_sound_catalog.py
python3 tools/gen_models.py --check