Update CI workflow to install Python dependencies with --break-system-packages option

This commit is contained in:
2025-07-18 19:55:39 +08:00
parent e3ccdf90e8
commit c8a7dadb0c

View File

@ -35,12 +35,7 @@ jobs:
- name: 安装后端依赖
working-directory: back
run: pip3 install -r requirements.txt
- name: 运行后端测试(如有)
working-directory: back
run: |
if [ -f tests/test.py ]; then python3 -m unittest discover -s tests; fi
run: pip3 install --break-system-packages -r requirements.txt
- name: 构建 Docker 镜像
run: docker-compose build