diff options
author | Sondre Lillebø Gundersen <sondrelg@live.no> | 2021-08-31 12:08:48 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-31 11:08:48 +0200 |
commit | 829eb415207c1eee3856cb80ae33e6d2913697d7 (patch) | |
tree | 24181548bca279f29be1103061a3291196994515 /.github/workflows/ci.yml | |
parent | f530b8cde47c862b566951ffc2ae562e247619aa (diff) | |
download | typing-829eb415207c1eee3856cb80ae33e6d2913697d7.tar.gz |
Add caching to the GHA workflow (#880)
Diffstat (limited to '.github/workflows/ci.yml')
-rw-r--r-- | .github/workflows/ci.yml | 20 |
1 files changed, 18 insertions, 2 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e09f89d..d3a866c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -27,9 +27,17 @@ jobs: with: python-version: ${{ matrix.python-version }} + - name: Load pip cache + uses: actions/cache@v2 + with: + path: ~/.cache/pip + key: ${{ runner.os }}-pip-${{ hashFiles('**/test-requirements.txt') }} + restore-keys: | + ${{ runner.os }}-pip- + - name: Install dependencies run: | - python -m pip install --upgrade pip + pip install --upgrade pip pip install -r test-requirements.txt - name: Run tests @@ -56,9 +64,17 @@ jobs: with: python-version: 3.9 + - name: Load pip cache + uses: actions/cache@v2 + with: + path: ~/.cache/pip + key: ${{ runner.os }}-pip-${{ hashFiles('**/test-requirements.txt') }} + restore-keys: | + ${{ runner.os }}-pip- + - name: Install dependencies run: | - python -m pip install --upgrade pip + pip install --upgrade pip pip install -r test-requirements.txt - name: Lint implementation |