From 13be4241874cf8c2f3dfe2dc0c79f9c29fea282f Mon Sep 17 00:00:00 2001 From: Timothy Stewart Date: Tue, 1 Nov 2022 19:55:33 -0500 Subject: [PATCH] fix(ci): pin + cache --- .github/workflows/lint.yml | 9 ++++++++- .github/workflows/test.yml | 2 +- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 89065355..02e700ea 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -22,7 +22,14 @@ jobs: with: python-version: ${{ env.PYTHON_VERSION }} cache: 'pip' # caching pip dependencies - + + - name: Cache pip + uses: actions/cache@9b0c1fce7a93df8e3bb8926b0d6e9d89e92f20a7 # 3.0.11 + with: + path: ~/.cache/pip + key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }} + restore-keys: | + ${{ runner.os }}-pip- - name: Install dependencies run: | diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index a9f4c670..4e87e3a4 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -35,7 +35,7 @@ jobs: EOF - name: Cache Vagrant boxes - uses: actions/cache@2541b1294d2704b0964813337f33b291d3f8596b # 3.0.11 + uses: actions/cache@9b0c1fce7a93df8e3bb8926b0d6e9d89e92f20a7 # 3.0.11 with: path: | ~/.vagrant.d/boxes