[moz] fix(ci): lint venv 残留导致 ensurepip 失败
根因: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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user