From 409eb6724d2886b3a6042850791ebe11efcfa858 Mon Sep 17 00:00:00 2001 From: tripleee Date: Thu, 16 Jun 2022 16:02:37 +0300 Subject: [PATCH] build.yml: remove cached env if it appears invalid Closes: #7100 --- .github/workflows/build.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 20cc97480f..5281435da5 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -39,6 +39,8 @@ jobs: env - name: Install dependencies run: | + # Invalidate cached env if it is linked to a nonexistent binary + ./env/bin/python3 --version || rm -rf ./env python3 -m venv env source env/bin/activate env/bin/pip3 install -U wheel