Skip to content

Commit 3cc27e3

Browse files
committed
Ensure venv cache is healthy
1 parent c93d113 commit 3cc27e3

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/tests.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,16 @@ jobs:
5555
5656
- name: Set up cache
5757
uses: actions/cache@v2
58+
id: cache
5859
with:
5960
path: .venv
6061
key: venv-${{ runner.os }}-${{ steps.full-python-version.outputs.version }}-${{ hashFiles('**/poetry.lock') }}
61-
62+
63+
- name: Ensure cache is healthy
64+
if: steps.cache.outputs.cache-hit == 'true'
65+
shell: bash
66+
run: timeout 10s poetry run pip --version || rm -rf .venv
67+
6268
- name: Install dependencies
6369
shell: bash
6470
run: |

0 commit comments

Comments
 (0)