summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Lord <davidism@gmail.com>2021-02-24 10:04:05 -0800
committerDavid Lord <davidism@gmail.com>2021-02-24 10:04:05 -0800
commit002ead31755e54be4ddb56cee6f90fe2462871b6 (patch)
tree3c50d9a966936ca8b1bee51bf01764f54e2d4148
parentc9ad9927d11f690a1572cfd399f12ec12edbc90f (diff)
downloadmarkupsafe-002ead31755e54be4ddb56cee6f90fe2462871b6.tar.gz
cache mypy in ci
-rw-r--r--.github/workflows/tests.yaml8
1 files changed, 7 insertions, 1 deletions
diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml
index 8dc97ef..d52088f 100644
--- a/.github/workflows/tests.yaml
+++ b/.github/workflows/tests.yaml
@@ -46,9 +46,15 @@ jobs:
id: pip-cache
run: echo "::set-output name=dir::$(pip cache dir)"
- name: cache pip
- uses: actions/cache@v1
+ uses: actions/cache@v2
with:
path: ${{ steps.pip-cache.outputs.dir }}
key: pip|${{ runner.os }}|${{ matrix.python }}|${{ hashFiles('setup.py') }}|${{ hashFiles('requirements/*.txt') }}
+ - name: cache mypy
+ uses: actions/cache@v2
+ with:
+ path: ./.mypy_cache
+ key: mypy|${{ matrix.python }}|${{ hashFiles('setup.cfg') }}
+ if: matrix.tox == 'typing'
- run: pip install tox
- run: tox -e ${{ matrix.tox }}