fix: cache keys

This commit is contained in:
Félix Voituret
2019-11-08 19:38:20 -05:00
parent 647a163635
commit ebd03c8565

View File

@@ -11,8 +11,8 @@ jobs:
- checkout - checkout
- restore_cache: - restore_cache:
keys: keys:
- python-3.6-cache-{{ .branch }}-{{ checksum requirements.txt }} - python-3.6-cache-{{ .Branch }}-{{ checksum "requirements.txt" }}
- python-3.6-cache-{{ .branch }}- - python-3.6-cache-{{ .Branch }}-
- python-3.6-cache- - python-3.6-cache-
- run: - run:
name: install ffmpeg name: install ffmpeg
@@ -21,7 +21,7 @@ jobs:
name: install python dependencies name: install python dependencies
command: pip install -r requirements.txt && pip install pytest command: pip install -r requirements.txt && pip install pytest
- save_cache: - save_cache:
key: python-3.6-cache-{{ .branch }}-{{ checksum requirements.txt }} key: python-3.6-cache-{{ .Branch }}-{{ checksum "requirements.txt" }}
paths: paths:
- "pretrained_models" - "pretrained_models"
- "/usr/local/bin" - "/usr/local/bin"
@@ -40,8 +40,8 @@ jobs:
- checkout - checkout
- restore_cache: - restore_cache:
keys: keys:
- python-3.7-cache-{{ .branch }}-{{ checksum requirements.txt }} - python-3.7-cache-{{ .Branch }}-{{ checksum "requirements.txt" }}
- python-3.7-cache-{{ .branch }}- - python-3.7-cache-{{ .Branch }}-
- python-3.7-cache- - python-3.7-cache-
- run: - run:
name: install ffmpeg name: install ffmpeg
@@ -53,7 +53,7 @@ jobs:
name: pytest name: pytest
command: pytest -W ignore::FutureWarning -W ignore::DeprecationWarning command: pytest -W ignore::FutureWarning -W ignore::DeprecationWarning
- save_cache: - save_cache:
key: python-3.7-cache-{{ .branch }}-{{ checksum requirements.txt }} key: python-3.7-cache-{{ .Branch }}-{{ checksum "requirements.txt" }}
paths: paths:
- "pretrained_models" - "pretrained_models"
- "/usr/local/bin" - "/usr/local/bin"
@@ -70,7 +70,7 @@ jobs:
name: package name: package
command: python setup.py sdist command: python setup.py sdist
- save_cache: - save_cache:
key: sdist-{{ .branch }}-{{ checksum setup.py }} key: sdist-{{ .Branch }}-{{ checksum "setup.py" }}
paths: paths:
- dist - dist
# ======================================================================================= # =======================================================================================
@@ -82,7 +82,7 @@ jobs:
steps: steps:
- checkout - checkout
- restore_cache: - restore_cache:
key: sdist-{{ .branch }}-{{ checksum setup.py }} key: sdist-{{ .Branch }}-{{ checksum "setup.py" }}
- run: - run:
name: upload to PyPi name: upload to PyPi
command: pip install twine && twine upload dist/* command: pip install twine && twine upload dist/*