From ae329e6e756177d2de47400dfecced7773687b65 Mon Sep 17 00:00:00 2001 From: Artem Veremey Date: Sat, 29 May 2021 16:37:44 -0700 Subject: [PATCH] Add pip cache to the Anaconda tests --- .github/workflows/test.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 959dbfa9d6d..ffae1ed1171 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -178,6 +178,19 @@ jobs: path: ~/conda_pkgs_dir key: conda-${{ runner.os }}-${{ matrix.python }}-${{ hashFiles('requirements*.txt') }} + - name: Get pip cache dir + id: pip-cache + run: | + echo "::set-output name=dir::$(pip cache dir)" + + - name: pip cache + uses: actions/cache@v2 + with: + path: ${{ steps.pip-cache.outputs.dir }} + key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }} + restore-keys: | + ${{ runner.os }}-pip- + - name: Setup Miniconda uses: conda-incubator/setup-miniconda@v2 with: