aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSviatoslav Sydorenko <wk@sydorenko.org.ua>2020-01-14 12:51:20 +0100
committerSviatoslav Sydorenko <wk@sydorenko.org.ua>2020-01-20 02:59:50 +0100
commit69ef612202e8ca5996865f23d9a4c935229b652b (patch)
tree9c3c10a26b66a7c8c8de9fae2feb15ac63dedddb
parent5a5adf2df3ff231092a78df26cea965a41a4f47f (diff)
downloadexternal_python_setuptools-69ef612202e8ca5996865f23d9a4c935229b652b.tar.gz
external_python_setuptools-69ef612202e8ca5996865f23d9a4c935229b652b.tar.bz2
external_python_setuptools-69ef612202e8ca5996865f23d9a4c935229b652b.zip
Cache Pip dists in GH Actions CI/CD workflows
-rw-r--r--.github/workflows/python-tests.yml8
1 files changed, 8 insertions, 0 deletions
diff --git a/.github/workflows/python-tests.yml b/.github/workflows/python-tests.yml
index 0801767f..64d4a0d6 100644
--- a/.github/workflows/python-tests.yml
+++ b/.github/workflows/python-tests.yml
@@ -33,6 +33,14 @@ jobs:
uses: actions/setup-python@v1.1.1
with:
python-version: ${{ matrix.python-version }}
+ - name: Cache pip
+ uses: actions/cache@v1
+ with:
+ path: ~/.cache/pip
+ key: ${{ runner.os }}-pip-${{ hashFiles('docs/requirements.txt') }}-${{ hashFiles('tests/requirements.txt') }}-${{ hashFiles('tox.ini') }}
+ restore-keys: |
+ ${{ runner.os }}-pip-
+ ${{ runner.os }}-
- name: Upgrade pip/setuptools/wheel
run: >-
python