From fdba34f70464a54f3761e426d50a889c70671677 Mon Sep 17 00:00:00 2001 From: Dhruv Manilawala Date: Thu, 5 Nov 2020 16:36:59 +0530 Subject: [PATCH] Cache pre-commit workflow (#3863) --- .github/workflows/pre-commit.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/pre-commit.yml b/.github/workflows/pre-commit.yml index 7002d2d0a..96175cfec 100644 --- a/.github/workflows/pre-commit.yml +++ b/.github/workflows/pre-commit.yml @@ -7,6 +7,12 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 + - uses: actions/cache@v2 + with: + path: | + ~/.cache/pre-commit + ~/.cache/pip + key: ${{ runner.os }}-pre-commit-${{ hashFiles('.pre-commit-config.yaml') }} - uses: actions/setup-python@v2 - name: Install pre-commit run: |