From 315c827b9bf1c23c4b5e27e44523d3616fa0b505 Mon Sep 17 00:00:00 2001 From: Kosei Kitahara Date: Mon, 4 Nov 2019 18:59:18 +0900 Subject: [PATCH] Cache downloaded cache insted of virtualenv --- examples.md | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/examples.md b/examples.md index 2add828..a449622 100644 --- a/examples.md +++ b/examples.md @@ -10,7 +10,7 @@ - [Ruby - Gem](#ruby---gem) - [Go - Modules](#go---modules) - [Elixir - Mix](#elixir---mix) -- [Python - pip, virtualenv](#python---pip-virtualenv) +- [Python - pip](#python---pip) ## Node - npm @@ -121,14 +121,12 @@ uses: actions/cache@preview ${{ runner.os }}-mix- ``` -## Python - pip, virtualenv - -If caching the virtualenv, you have to activate the environment for each tasks. +## Python - pip ```yaml - uses: actions/cache@preview with: - path: .venv + path: ~/.cache/pip key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }} restore-keys: | ${{ runner.os }}-pip-