|
| From: | Thomas Huth |
| Subject: | Re: [PATCH 1/8] Acceptance Jobs: preserve the cache for pip on GitLab CI |
| Date: | Fri, 16 Apr 2021 05:56:10 +0200 |
| User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.9.0 |
On 15/04/2021 23.51, Cleber Rosa wrote:
The acceptance jobs (via `make check-venv`) will setup a virtual
environment, and after that install packages defined in
tests/requirements.txt via pip.
Let's enable pip's default cache directory, so that we can save
a bit on time/bandwidth.
Signed-off-by: Cleber Rosa <crosa@redhat.com>
---
.gitlab-ci.yml | 1 +
1 file changed, 1 insertion(+)
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 52d65d6c04..9cc4676912 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -53,6 +53,7 @@ include:
key: "${CI_JOB_NAME}-cache"
paths:
- ${CI_PROJECT_DIR}/avocado-cache
+ - ~/.cache/pip
Did you check whether this works? AFAIK the cache directories have to be part of the project directory, see:
https://docs.gitlab.com/ee/ci/yaml/README.html#cacheWe already tried to cache ~/avocado/data/cache in the past, but it did not work and we had to move the cache manually to the current working directory (see commit 5896c539547).
Thomas
| [Prev in Thread] | Current Thread | [Next in Thread] |