Skip to content

Commit 63d2b45

Browse files
committed
Ensure venv working after restore
1 parent 2a63597 commit 63d2b45

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.github/actions/restore-venv/action.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,11 @@ runs:
2626
${{ inputs.venv-dir }}
2727
${{ inputs.precommit-home }}
2828
key: ${{ inputs.cache-key }}
29+
- name: Ensure virtual environment after restore
30+
if: ${{ steps.cache-create.outputs.cache-hit == 'true' }}
31+
shell: bash
32+
run: |
33+
python -m venv --upgrade ${{ inputs.venv-dir }}
2934
- name: Create Python virtual environment
3035
if: ${{ steps.cache-create.outputs.cache-hit != 'true' }}
3136
shell: bash

0 commit comments

Comments
 (0)