diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index f2ee21f..ac4431c 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -59,6 +59,13 @@ jobs: - name: Prune pre-commit hooks if: steps.cache-pre-commit.outputs.cache-hit != 'true' run: poetry run pre-commit gc + - name: Cache mypy + id: cache-mypy + uses: actions/cache@704facf57e6136b1bc63b828d79edcd491f0ee84 # v3 + with: + path: .mypy_cache + key: mypy-${{ runner.os }}-${{ steps.setup-python.outputs.python-version }}-${{ hashFiles('poetry.lock') }}-${{ github.sha }} + restore-keys: mypy-${{ runner.os }}-${{ steps.setup-python.outputs.python-version }}-${{ hashFiles('poetry.lock') }}- - name: Run gitlint run: poetry run pre-commit run --color=always --hook-stage manual gitlint-ci - name: Run pre-commit