[moz] fix(ci): lint venv 残留导致 ensurepip 失败
CI / lint (pull_request) Successful in 10s
CI / test (pull_request) Successful in 27s
CI / frontend (pull_request) Successful in 11s
CI / notify-on-failure (pull_request) Successful in 0s

根因:lint job 创建 /tmp/ci-venv-lint 后不清理,下次运行时
venv 模块尝试在已有目录上 upgrade,ensurepip 调用失败。
test job 已有 rm -rf /tmp/ci-venv-test,lint job 缺失。

修复:lint Setup Python step 首行加 rm -rf /tmp/ci-venv-lint。
This commit is contained in:
cfdaily
2026-06-19 09:32:49 +08:00
parent 52b84ee58a
commit 375d6f30f8
+1
View File
@@ -26,6 +26,7 @@ jobs:
- name: Setup Python
run: |
rm -rf /tmp/ci-venv-lint
python3 -m venv /tmp/ci-venv-lint
/tmp/ci-venv-lint/bin/pip install --quiet --upgrade pip
/tmp/ci-venv-lint/bin/pip install --quiet flake8