Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
GÉANT Service Orchestrator
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
GÉANT Orchestration and Automation Team
GAP
GÉANT Service Orchestrator
Merge requests
!258
Cache locally install pip packages, which should speed up pipeline runs in the long term
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Cache locally install pip packages, which should speed up pipeline runs in the long term
feature/cache-pip-packages
into
develop
Overview
0
Commits
2
Pipelines
1
Changes
1
Merged
Karel van Klink
requested to merge
feature/cache-pip-packages
into
develop
10 months ago
Overview
0
Commits
2
Pipelines
1
Changes
1
Expand
0
0
Merge request reports
Compare
develop
develop (base)
and
latest version
latest version
7dfb3f7b
2 commits,
10 months ago
1 file
+
2
−
6
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
.gitlab-ci.yml
+
2
−
6
Options
@@ -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,11 @@ 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
:
key
:
tox-virtualenv
paths
:
-
.cache/pip
-
venv/
before_script
:
-
pip install virtualenv
Loading