From 9594362f74c2ea66a495da8d50c3cb25de67d62c Mon Sep 17 00:00:00 2001 From: Dmitry Rodionov Date: Mon, 28 Mar 2022 17:34:13 +0300 Subject: [PATCH] change python cache version to 2 (fixes python cache in circle CI) --- .circleci/config.yml | 8 ++++---- scripts/pysync | 8 +++++++- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 4a03cbf3b5..e96964558b 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -228,12 +228,12 @@ jobs: - checkout - restore_cache: keys: - - v1-python-deps-{{ checksum "poetry.lock" }} + - v2-python-deps-{{ checksum "poetry.lock" }} - run: name: Install deps command: ./scripts/pysync - save_cache: - key: v1-python-deps-{{ checksum "poetry.lock" }} + key: v2-python-deps-{{ checksum "poetry.lock" }} paths: - /home/circleci/.cache/pypoetry/virtualenvs - run: @@ -287,12 +287,12 @@ jobs: - run: git submodule update --init --depth 1 - restore_cache: keys: - - v1-python-deps-{{ checksum "poetry.lock" }} + - v2-python-deps-{{ checksum "poetry.lock" }} - run: name: Install deps command: ./scripts/pysync - save_cache: - key: v1-python-deps-{{ checksum "poetry.lock" }} + key: v2-python-deps-{{ checksum "poetry.lock" }} paths: - /home/circleci/.cache/pypoetry/virtualenvs - run: diff --git a/scripts/pysync b/scripts/pysync index e548973dea..12fa08beca 100755 --- a/scripts/pysync +++ b/scripts/pysync @@ -4,4 +4,10 @@ # It is intended to be a primary endpoint for all the people who want to # just setup test environment without going into details of python package management -poetry install --no-root # this installs dev dependencies by default +poetry config --list + +if [ -z "${CI}" ]; then + poetry install --no-root --no-interaction --ansi +else + poetry install --no-root +fi