From 41a687629c7212814ec046b5790984b338c89143 Mon Sep 17 00:00:00 2001 From: kclowes Date: Thu, 17 Jun 2021 16:37:06 -0600 Subject: [PATCH] Split docs steps out --- .circleci/config.yml | 30 ++++++++++++++++++++++++++++-- 1 file changed, 28 insertions(+), 2 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 7b61772d61..c2786abd5f 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -15,6 +15,32 @@ common: &common - run: name: install dependencies command: pip install --user tox + - run: + name: run tox + command: ~/.local/bin/tox -r + - save_cache: + paths: + - .tox + - ~/.cache/pip + - ~/.local + - ./eggs + - ~/.ethash + - ~/.py-geth + key: cache-{{ .Environment.CIRCLE_JOB }}-{{ checksum "setup.py" }}-{{ checksum "tox.ini" }} + +docs_steps: &docs_steps + working_directory: ~/repo + steps: + - checkout + - restore_cache: + keys: + - cache-docs-{{ .Environment.CIRCLE_JOB }}-{{ checksum "setup.py" }}-{{ checksum "tox.ini" }} + - run: + name: checkout ethpm-spec submodule + command: git submodule update --init --recursive + - run: + name: install dependencies + command: pip install --user tox - run: name: install web3 command: pip install -U web3 @@ -29,7 +55,7 @@ common: &common - ./eggs - ~/.ethash - ~/.py-geth - key: cache-{{ .Environment.CIRCLE_JOB }}-{{ checksum "setup.py" }}-{{ checksum "tox.ini" }} + key: cache-docs-{{ .Environment.CIRCLE_JOB }}-{{ checksum "setup.py" }}-{{ checksum "tox.ini" }} # parity_steps: &parity_steps # working_directory: ~/repo @@ -187,7 +213,7 @@ jobs: TOXENV: lint docs: - <<: *common + <<: *docs_steps docker: - image: circleci/python:3.6 environment: