🐛 fix(ci): i job Python installano in un virtualenv proprio
- python-quality-gates.yml e python-docker-release.yml creano un venv in $RUNNER_TEMP prima dell'install - il toolcache di setup-python è condiviso tra i job del runner: l'install editable di python-wyoming (pacchetto 'wyoming') sopravviveva alla sua workspace e pip lo dava per soddisfatto negli altri repository - sblocca la CI e la release di python-wyoming-piper (ModuleNotFoundError: No module named 'wyoming') Fixes #undefined @1h
This commit is contained in:
1 parent
b94bd6936a
commit
b5dc2f0fd6
2 files changed
+22
No files matched your search
@@ -37,6 +37,17 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
python-version: ${{ inputs.python-version || '3.11' }}
|
python-version: ${{ inputs.python-version || '3.11' }}
|
||||||
|
|
||||||
|
# Il toolcache di setup-python è condiviso tra i job dello stesso runner: un
|
||||||
|
# 'pip install -e .' fatto lì da un altro repository (es. python-wyoming, che
|
||||||
|
# pubblica il pacchetto 'wyoming') sopravvive alla cancellazione della sua
|
||||||
|
# workspace e lascia un'installazione editable rotta che pip considera già
|
||||||
|
# soddisfatta. Ogni job installa quindi in un virtualenv proprio.
|
||||||
|
- name: Virtualenv isolato
|
||||||
|
run: |
|
||||||
|
python -m venv "$RUNNER_TEMP/venv"
|
||||||
|
echo "$RUNNER_TEMP/venv/bin" >> "$GITHUB_PATH"
|
||||||
|
echo "VIRTUAL_ENV=$RUNNER_TEMP/venv" >> "$GITHUB_ENV"
|
||||||
|
|
||||||
- name: Cache pip
|
- name: Cache pip
|
||||||
uses: https://github.com/actions/cache@v4
|
uses: https://github.com/actions/cache@v4
|
||||||
with:
|
with:
|
||||||
|
|||||||
@@ -30,6 +30,17 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
python-version: ${{ inputs.python-version || '3.11' }}
|
python-version: ${{ inputs.python-version || '3.11' }}
|
||||||
|
|
||||||
|
# Il toolcache di setup-python è condiviso tra i job dello stesso runner: un
|
||||||
|
# 'pip install -e .' fatto lì da un altro repository (es. python-wyoming, che
|
||||||
|
# pubblica il pacchetto 'wyoming') sopravvive alla cancellazione della sua
|
||||||
|
# workspace e lascia un'installazione editable rotta che pip considera già
|
||||||
|
# soddisfatta. Ogni job installa quindi in un virtualenv proprio.
|
||||||
|
- name: Virtualenv isolato
|
||||||
|
run: |
|
||||||
|
python -m venv "$RUNNER_TEMP/venv"
|
||||||
|
echo "$RUNNER_TEMP/venv/bin" >> "$GITHUB_PATH"
|
||||||
|
echo "VIRTUAL_ENV=$RUNNER_TEMP/venv" >> "$GITHUB_ENV"
|
||||||
|
|
||||||
- name: Cache pip
|
- name: Cache pip
|
||||||
uses: https://github.com/actions/cache@v4
|
uses: https://github.com/actions/cache@v4
|
||||||
with:
|
with:
|
||||||
|
|||||||
Reference in new issue
Block a user