diff --git a/examples.md b/examples.md index 513f69d..1f6ecef 100644 --- a/examples.md +++ b/examples.md @@ -435,12 +435,17 @@ jobs: ## Python - pipenv ```yaml +- name: Set up Python + # The actions/cache step below uses this id to get the exact python version + id: setup-python + uses: actions/setup-python@v2 + + ⋮ + - uses: actions/cache@v2 with: path: ~/.local/share/virtualenvs - key: ${{ runner.os }}-pipenv-${{ hashFiles('Pipfile.lock') }} - restore-keys: | - ${{ runner.os }}-pipenv- + key: ${{ runner.os }}-python-${{ steps.setup-python.outputs.python-version }}-pipenv-${{ hashFiles('Pipfile.lock') }} ``` ## R - renv