Skip to content

Commit

Permalink
ci: add mypy caching step
Browse files Browse the repository at this point in the history
  • Loading branch information
KSmanis committed Oct 31, 2023
1 parent eed3ffc commit fdf5745
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit fdf5745

Please sign in to comment.