From 344ea069cf034dd50a20fce7621d0eb33c6d872d Mon Sep 17 00:00:00 2001 From: Thomas Grainger Date: Sat, 5 Sep 2020 11:45:42 +0100 Subject: [PATCH] configure pip cache --- .github/workflows/main.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 31943d0..28600b4 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -25,6 +25,19 @@ jobs: with: python-version: ${{ matrix.python-version }} + - 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('**/setup.cfg') }} + restore-keys: | + ${{ runner.os }}-pip- + - name: Install run: | pip install tox