From 69ef612202e8ca5996865f23d9a4c935229b652b Mon Sep 17 00:00:00 2001 From: Sviatoslav Sydorenko Date: Tue, 14 Jan 2020 12:51:20 +0100 Subject: Cache Pip dists in GH Actions CI/CD workflows --- .github/workflows/python-tests.yml | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to '.github/workflows/python-tests.yml') 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 -- cgit v1.2.1