Create empty venv on cache miss (#16816)
This commit is contained in:
6
.github/workflows/update_metdata.yml
vendored
6
.github/workflows/update_metdata.yml
vendored
@@ -23,6 +23,12 @@ jobs:
|
||||
path: ~/venv/
|
||||
key: v2-metadata-${{ hashFiles('setup.py') }}
|
||||
|
||||
- name: Create virtual environment on cache miss
|
||||
if: steps.cache.outputs.cache-hit != 'true'
|
||||
run: |
|
||||
python -m venv ~/venv && . ~/venv/bin/activate
|
||||
pip install --upgrade pip
|
||||
|
||||
- name: Setup environment
|
||||
run: |
|
||||
. ~/venv/bin/activate
|
||||
|
||||
Reference in New Issue
Block a user