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. # =======================================================================================