From 2e7fa73563706f976c89626c63e8bb3bfd00a8d6 Mon Sep 17 00:00:00 2001 From: Hadrien David Date: Mon, 5 Apr 2021 09:27:20 -0400 Subject: [PATCH] cci caching --- .circleci/config.yml | 25 ++++++++++++++----------- 1 file changed, 14 insertions(+), 11 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index c48fc390..93494e90 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -6,7 +6,6 @@ orbs: python: dialogue/python@2.12.1 utils: dialogue/utils@3.2.6 - workflows: ci: jobs: @@ -58,19 +57,23 @@ jobs: description: | Specify which version of sqlalchemy to run the tests against executor: python-postgres - working_directory: ~/project/. + working_directory: ~/project steps: - base/setup - python/setup - - run: - name: "install tox" - command: | - poetry run pip install -U tox - - run: - name: "run tox using sqlalchemy <>.*" - command: | - poetry run tox -e sqlalchemy<> - + - utils/with_cache: + key: '<>-{{ checksum "pyproject.toml" }}-{{ checksum "poetry.lock" }}' + namespace: tox + path: {{ .Environment.CIRCLE_WORKING_DIRECTORY }}/.tox + steps: + - run: + name: "install tox" + command: | + poetry run pip install -U tox + - run: + name: "run tox using sqlalchemy <>.*" + command: | + poetry run tox -e sqlalchemy<> - utils/send_coverage_to_codecov: codecov_flag: sqlalchemy<>