Skip to content

Commit b26df94

Browse files
authored
ci: Tightly couple caches to the lockfile hash (#91)
1 parent 1e3d99a commit b26df94

7 files changed

Lines changed: 0 additions & 27 deletions

File tree

.github/workflows/ci.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,6 @@ jobs:
5858
with:
5959
path: ~/.local/share/virtualenvs
6060
key: ${{ runner.os }}-python-${{ env.python_version }}-pipenv-${{ hashFiles('Pipfile.lock') }}
61-
restore-keys: |
62-
${{ runner.os }}-python-${{ env.python_version }}-pipenv-
63-
${{ runner.os }}-python-
6461
- name: Install the dependencies
6562
run: python -m pip install --upgrade pipenv
6663
- name: Install Task

.github/workflows/security.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,6 @@ jobs:
2626
with:
2727
path: ~/.local/share/virtualenvs
2828
key: ${{ runner.os }}-python-${{ env.python_version }}-pipenv-${{ hashFiles('Pipfile.lock') }}
29-
restore-keys: |
30-
${{ runner.os }}-python-${{ env.python_version }}-pipenv-
31-
${{ runner.os }}-python-
3229
- name: Install the dependencies
3330
run: |
3431
python -m pip install --upgrade pipenv

.github/workflows/update.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,6 @@ jobs:
3030
with:
3131
path: ~/.local/share/virtualenvs
3232
key: ${{ runner.os }}-python-${{ env.python_version }}-pipenv-${{ hashFiles('Pipfile.lock') }}
33-
restore-keys: |
34-
${{ runner.os }}-python-${{ env.python_version }}-pipenv-
35-
${{ runner.os }}-python-
3633
- name: Install the dependencies
3734
run: python -m pip install --upgrade pipenv
3835
- name: Install Task

{{cookiecutter.project_name|replace(" ", "")}}/.github/workflows/commit.yml

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,6 @@ jobs:
4949
with:
5050
path: ~/.local/share/virtualenvs
5151
key: ${{ "{{ runner.os }}" }}-python-${{ "{{ env.python_version }}" }}-pipenv-${{ "{{ hashFiles('Pipfile.lock') }}" }}
52-
restore-keys: |
53-
${{ "{{ runner.os }}" }}-python-${{ "{{ env.python_version }}" }}-pipenv-
54-
${{ "{{ runner.os }}" }}-python-
5552
- name: Install the dependencies
5653
run: |
5754
python -m pip install --upgrade pipenv
@@ -121,9 +118,6 @@ jobs:
121118
with:
122119
path: ~/.local/share/virtualenvs
123120
key: ${{ "{{ runner.os }}" }}-python-${{ "{{ env.python_version }}" }}-pipenv-${{ "{{ hashFiles('Pipfile.lock') }}" }}
124-
restore-keys: |
125-
${{ "{{ runner.os }}" }}-python-${{ "{{ env.python_version }}" }}-pipenv-
126-
${{ "{{ runner.os }}" }}-python-
127121
- name: Install the dependencies
128122
run: python -m pip install --upgrade pipenv
129123
- name: Install Task
@@ -175,9 +169,6 @@ jobs:
175169
with:
176170
path: ~/.local/share/virtualenvs
177171
key: ${{ "{{ runner.os }}" }}-python-${{ "{{ env.python_version }}" }}-pipenv-${{ "{{ hashFiles('Pipfile.lock') }}" }}
178-
restore-keys: |
179-
${{ "{{ runner.os }}" }}-python-${{ "{{ env.python_version }}" }}-pipenv-
180-
${{ "{{ runner.os }}" }}-python-
181172
- name: Install the dependencies
182173
run: python -m pip install --upgrade pipenv
183174
- name: Install Task

{{cookiecutter.project_name|replace(" ", "")}}/.github/workflows/release.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,6 @@ jobs:
3939
with:
4040
path: ~/.local/share/virtualenvs
4141
key: ${{ "{{ runner.os }}" }}-python-${{ "{{ env.python_version }}" }}-pipenv-${{ "{{ hashFiles('Pipfile.lock') }}" }}
42-
restore-keys: |
43-
${{ "{{ runner.os }}" }}-python-${{ "{{ env.python_version }}" }}-pipenv-
44-
${{ "{{ runner.os }}" }}-python-
4542
- name: Install the dependencies
4643
run: python -m pip install --upgrade pipenv
4744
- name: Install Task

{{cookiecutter.project_name|replace(" ", "")}}/.github/workflows/security.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,6 @@ jobs:
3636
with:
3737
path: ~/.local/share/virtualenvs
3838
key: ${{ "{{ runner.os }}" }}-python-${{ "{{ env.python_version }}" }}-pipenv-${{ "{{ hashFiles('Pipfile.lock') }}" }}
39-
restore-keys: |
40-
${{ "{{ runner.os }}" }}-python-${{ "{{ env.python_version }}" }}-pipenv-
41-
${{ "{{ runner.os }}" }}-python-
4239
- name: Install the dependencies
4340
run: |
4441
python -m pip install --upgrade pipenv

{{cookiecutter.project_name|replace(" ", "")}}/.github/workflows/update.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,6 @@ jobs:
3030
with:
3131
path: ~/.local/share/virtualenvs
3232
key: ${{ "{{ runner.os }}" }}-python-${{ "{{ env.python_version }}" }}-pipenv-${{ "{{ hashFiles('Pipfile.lock') }}" }}
33-
restore-keys: |
34-
${{ "{{ runner.os }}" }}-python-${{ "{{ env.python_version }}" }}-pipenv-
35-
${{ "{{ runner.os }}" }}-python-
3633
- name: Install the dependencies
3734
run: python -m pip install --upgrade pipenv
3835
- name: Install Task

0 commit comments

Comments
 (0)