From a2e89c716b76fb49984e5dc0805eb55850621d86 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Dahlgren?= <bjorn@dahlgren.at> Date: Mon, 17 Feb 2020 09:15:09 +0100 Subject: [PATCH] chore(ci): make clear pip cache work cross platform (#5492) --- .github/workflows/test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index e23ce3260d..bbf04fb797 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -100,7 +100,7 @@ jobs: - name: Clear pip cache if: steps.pip_cache_packages.outputs.cache-hit != 'true' - run: rm -rf ${{ steps.init.outputs.pip_cache }} + run: python -c "from pip._internal.locations import USER_CACHE_DIR; from shutil import rmtree; rmtree(USER_CACHE_DIR, ignore_errors=True)" - name: Installing dependencies shell: bash -- GitLab