CI: add caching to improve performance
@@ -9,6 +9,14 @@ workflow:
- if: $CI_MERGE_REQUEST_ID # Execute jobs in merge request context
- if: $CI_COMMIT_BRANCH == 'develop' # Execute jobs when a new commit is pushed to develop branch
+variables:
+ PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip"
+
+cache:
+ paths:
+ - .cache/pip
+ - .cache/pypoetry
+
stages:
- build
- lint
