Skip to content
Snippets Groups Projects
Verified Commit e95ac75a authored by Karel van Klink's avatar Karel van Klink :smiley_cat:
Browse files

cache the virtualenv in pipeline runs

parent 071fdcfb
No related branches found
No related tags found
No related merge requests found
......@@ -17,7 +17,6 @@ run-tox-pipeline:
services:
- postgres:15.4
# Change pip's cache directory to be inside the project directory since we can
# only cache local items.
variables:
......@@ -27,14 +26,10 @@ run-tox-pipeline:
DATABASE_URI_TEST: 'postgresql://nwa:nwa@postgres:5432/gso-test-db'
PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip"
# Pip's cache doesn't store the python packages
# https://pip.pypa.io/en/stable/topics/caching/
#
# If you want to also cache the installed packages, you have to install
# them in a virtualenv and cache it as well.
cache:
paths:
- .cache/pip
- venv/
before_script:
- pip install virtualenv
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment