From 05571be6610a6084130eaf0c0f6f2e1be2308996 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20Voituret?= Date: Fri, 8 Nov 2019 19:54:33 -0500 Subject: [PATCH] fix: cache model only --- .circleci/config.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index e379d20..3e0ac71 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -9,6 +9,8 @@ jobs: working_directory: ~/spleeter steps: - checkout + - restore_cache: + key: models-{{ checksum "spleeter/model/__init__.py" }} - run: name: install ffmpeg command: apt-get update && apt-get install -y ffmpeg @@ -18,6 +20,10 @@ jobs: - run: name: pytest command: pytest -W ignore::FutureWarning -W ignore::DeprecationWarning + - save_cache: + key: models-{{ checksum "spleeter/model/__init__.py" }} + paths: + - "pretrained_models" # ======================================================================================= # Python 3.7 testing. # ======================================================================================= @@ -27,6 +33,8 @@ jobs: working_directory: ~/spleeter steps: - checkout + - restore_cache: + key: models-{{ checksum "spleeter/model/__init__.py" }} - run: name: install ffmpeg command: apt-get update && apt-get install -y ffmpeg @@ -36,6 +44,10 @@ jobs: - run: name: pytest command: pytest -W ignore::FutureWarning -W ignore::DeprecationWarning + - save_cache: + key: models-{{ checksum "spleeter/model/__init__.py" }} + paths: + - "pretrained_models" # ======================================================================================= # Source distribution packaging. # =======================================================================================