From d92751c796094f6d4afecad91b65ec98a3bb9201 Mon Sep 17 00:00:00 2001 From: Sviatoslav Sydorenko Date: Fri, 15 Dec 2023 04:30:25 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=A7=AA=20Cache=20pre-commit.com=20virtual?= =?UTF-8?q?envs=20@=20CI?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/reusable-linters.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/reusable-linters.yml b/.github/workflows/reusable-linters.yml index 256bce1f..3be69838 100644 --- a/.github/workflows/reusable-linters.yml +++ b/.github/workflows/reusable-linters.yml @@ -34,6 +34,16 @@ jobs: python-version: ${{ env.PYTHON_LATEST }} cache: pip cache-dependency-path: requirements/*.txt + - name: Cache pre-commit.com virtualenvs + uses: actions/cache@v3 + with: + path: ~/.cache/pre-commit + key: >- + ${{ + runner.os + }}-pre-commit-${{ + hashFiles('.pre-commit-config.yaml') + }} - name: Install dependencies uses: py-actions/py-dependency-install@v4 with: