summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulian Berman <Julian@GrayVines.com>2021-03-03 12:33:16 -0500
committerJulian Berman <Julian@GrayVines.com>2022-08-20 09:51:10 +0300
commit4129c1a768d099ab0f46dae9e368d4bfac6cddac (patch)
treeb94d1f3fdc611fc71cb29e0c488952a304880ea6
parent3d05b15510094caf3d008ebe90c0403047e538f9 (diff)
downloadjsonschema-ci-cache.tar.gz
Cache dependencies in CI.ci-cache
Maybe this makes this faster...
-rw-r--r--.github/workflows/ci.yml10
1 files changed, 10 insertions, 0 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 5680b38..6b3d7f8 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -138,6 +138,16 @@ jobs:
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version.name }}
+ - name: Get pip cache dir
+ id: pip-cache
+ run: echo "::set-output name=dir::$(pip cache dir)"
+ - name: Cache dependencies
+ uses: actions/cache@v2
+ with:
+ path: ${{ steps.pip-cache.outputs.dir }}
+ key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
+ restore-keys: |
+ ${{ runner.os }}-pip-
- name: Install dependencies
run: >
sudo apt-get update &&