From 8e1638005f174dfe0b6681a8b05ab5473e89a345 Mon Sep 17 00:00:00 2001 From: Majid Hajiloo Date: Fri, 8 Nov 2024 17:05:41 +0330 Subject: [PATCH] 10 --- .github/workflows/ci.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0323306..a29e08b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -39,6 +39,14 @@ jobs: run: | pipenv install --dev + - name: Cache pre-commit environments + uses: actions/cache@v3 + with: + path: ${{ runner.os == 'Windows' && 'C:\\Users\\runneradmin\\.cache\\pre-commit' || '~/.cache/pre-commit' }} + key: ${{ runner.os }}-pre-commit-${{ hashFiles('.pre-commit-config.yaml') }} + restore-keys: | + ${{ runner.os }}-pre-commit- + - name: Run pre-commit run: | pipenv run pre-commit run --all-files