From 5b22f5ed508221ac04311d7f5e6966b25ab0dc47 Mon Sep 17 00:00:00 2001 From: Hood Chatham Date: Wed, 2 Mar 2022 07:44:19 -0800 Subject: [PATCH] Add cache for lint CI to reduce timeouts (#2240) --- .circleci/config.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index dcd24f395..5702d0853 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -22,6 +22,9 @@ jobs: steps: - checkout + - restore_cache: + key: pre-commit-{{ checksum ".pre-commit-config.yaml" }} + - run: name: Install lint requirements command: | @@ -31,6 +34,11 @@ jobs: name: lint command: make lint + - save_cache: + key: pre-commit-{{ checksum ".pre-commit-config.yaml" }} + paths: + - "/root/.cache" + test-docs: <<: *defaults resource_class: small