From b0d9fe6ce3bf9108a820d4a443292cecfc9e60d0 Mon Sep 17 00:00:00 2001 From: Hugo Date: Mon, 4 Nov 2019 09:06:09 +0200 Subject: [PATCH] Cache pip --- .github/workflows/test.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 163250248..9288553d9 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -30,6 +30,20 @@ jobs: steps: - uses: actions/checkout@v1 + - name: Ubuntu cache + uses: actions/cache@preview + if: startsWith(matrix.os, 'ubuntu') + with: + path: ~/.cache/pip + key: ${{ github.workflow }}-${{ matrix.os }}-${{ matrix.python-version }} + + - name: macOS cache + uses: actions/cache@preview + if: startsWith(matrix.os, 'macOS') + with: + path: ~/Library/Caches/pip + key: ${{ github.workflow }}-${{ matrix.os }}-${{ matrix.python-version }} + - name: Set up Python ${{ matrix.python-version }} uses: actions/setup-python@v1 with: