ci: cache policy is pull-only for most of the jobs

pull/8467/head
Fu Hanxi 2022-02-25 14:31:21 +08:00
rodzic 0a64094a60
commit 83965c22b7
2 zmienionych plików z 11 dodań i 0 usunięć

Wyświetl plik

@ -87,8 +87,12 @@ variables:
CI_PYTHON_CONSTRAINT_FILE: "espidf.constraints.v5.0.txt" CI_PYTHON_CONSTRAINT_FILE: "espidf.constraints.v5.0.txt"
cache: cache:
key: pip-cache
paths: paths:
- .cache/pip - .cache/pip
# pull only for most of the use cases since it's cache dir.
# Only set "pull-push" policy for "scan_test" since it would **possibly** install all pypi packages
policy: pull
.setup_tools_unless_target_test: &setup_tools_unless_target_test | .setup_tools_unless_target_test: &setup_tools_unless_target_test |
if [[ -n "$IDF_DONT_USE_MIRRORS" ]]; then if [[ -n "$IDF_DONT_USE_MIRRORS" ]]; then

Wyświetl plik

@ -153,6 +153,13 @@ scan_tests:
- $TEST_APPS_OUTPUT_DIR - $TEST_APPS_OUTPUT_DIR
- $COMPONENT_UT_OUTPUT_DIR - $COMPONENT_UT_OUTPUT_DIR
expire_in: 1 week expire_in: 1 week
cache:
key: pip-cache
paths:
- .cache/pip
# pull only for most of the use cases since it's cache dir.
# Only set "pull-push" policy for "scan_test" since it would **possibly** install all pypi packages
policy: pull-push
variables: variables:
EXAMPLE_TEST_DIR: ${CI_PROJECT_DIR}/examples EXAMPLE_TEST_DIR: ${CI_PROJECT_DIR}/examples
EXAMPLE_TEST_OUTPUT_DIR: ${CI_PROJECT_DIR}/examples/test_configs EXAMPLE_TEST_OUTPUT_DIR: ${CI_PROJECT_DIR}/examples/test_configs