]> git.ipfire.org Git - thirdparty/jinja.git/commitdiff
cache mypy in ci
authorDavid Lord <davidism@gmail.com>
Wed, 24 Feb 2021 17:49:31 +0000 (09:49 -0800)
committerDavid Lord <davidism@gmail.com>
Wed, 24 Feb 2021 17:49:31 +0000 (09:49 -0800)
.github/workflows/tests.yaml

index e656dcf8406966ac275909b25028b33121caf38d..d52088f92d8478cfd449e904c8af358712360417 100644 (file)
@@ -50,5 +50,11 @@ jobs:
         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 }}