From 67479510d70a6a0c9e6536b2beec7af088ad757f Mon Sep 17 00:00:00 2001 From: Tadas Sutkaitis Date: Mon, 31 Jul 2023 17:10:56 +0200 Subject: [PATCH] chore: add lint cache --- .github/workflows/lint.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index da9b04e..ed61561 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -14,5 +14,15 @@ jobs: - name: Setup Python uses: actions/setup-python@v4 + - name: Get Python info + id: python_info + run: echo info=$(python -VV | sha256sum | cut -d' ' -f1) >> $GITHUB_OUTPUT + + - name: Create pre-commit cache + uses: actions/cache@v3 + with: + path: ~/.cache/pre-commit + key: pre-commit|${{ steps.python_info.outputs.info }}|${{ hashFiles('.pre-commit-config.yaml') }} + - name: Setup pre-commit uses: pre-commit/action@v3.0.0