ci: pip upgrade + --no-cache-dir 防旧 pip dist-info 损坏(姜维建议)
This commit is contained in:
@@ -27,6 +27,7 @@ jobs:
|
|||||||
- name: Setup Python
|
- name: Setup Python
|
||||||
run: |
|
run: |
|
||||||
python3 -m venv /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
|
/tmp/ci-venv-lint/bin/pip install --quiet flake8
|
||||||
|
|
||||||
- name: Lint with flake8
|
- name: Lint with flake8
|
||||||
@@ -44,7 +45,8 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
rm -rf /tmp/ci-venv-test
|
rm -rf /tmp/ci-venv-test
|
||||||
python3 -m venv /tmp/ci-venv-test
|
python3 -m venv /tmp/ci-venv-test
|
||||||
/tmp/ci-venv-test/bin/pip install --quiet fastapi pydantic pyyaml uvicorn requests pytest pytest-asyncio httpx
|
/tmp/ci-venv-test/bin/pip install --quiet --upgrade pip
|
||||||
|
/tmp/ci-venv-test/bin/pip install --quiet --no-cache-dir fastapi pydantic pyyaml uvicorn requests pytest pytest-asyncio httpx
|
||||||
|
|
||||||
- name: Debug environment
|
- name: Debug environment
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
Reference in New Issue
Block a user