From fdf5745281244a55df1f32c6f41dcae486f59b10 Mon Sep 17 00:00:00 2001 From: Konstantinos Smanis Date: Tue, 31 Oct 2023 17:11:58 +0200 Subject: [PATCH] ci: add mypy caching step --- .github/workflows/build.yml | 7 +++++++ 1 file changed, 7 insertions(+) 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