Skip to content

Commit 0d5171b

Browse files
committed
Remove Python dependencies caching step
During the development phase of the previous attempt at setting up an official collection of template workflows, I investigated dependencies caching and added it to all workflows where applicable. Afterwards, doubts were raised about whether it provided any benefits. I don't know enough about this subject to make a call on that and I have been unable to get any more information on the subject. Since the caching significantly increases the complexity of the workflows, which may make them more difficult to maintain and contribute to, I think it's best to just remove all the caching for now. I hope to eventually be able to revisit this topic and restore caching in any workflows where it is definitely beneficial. This particular caching step was in the source workflow in the Arduino CLI repository from the very beginning, and was my inspiration for using caching in the first place. However, none of the other workflows with Python dependencies have caching at this point, so having this one as an exception to the otherwise fairly standardized workflow format is confusing.
1 parent 067ea8a commit 0d5171b

File tree

2 files changed

+0
-16
lines changed

2 files changed

+0
-16
lines changed

workflow-templates/dependabot/workflow-template-copies/.github/workflows/deploy-mkdocs-versioned-poetry.yml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -56,14 +56,6 @@ jobs:
5656
with:
5757
python-version: "3.9"
5858

59-
- name: Cache dependencies
60-
uses: actions/cache@v2
61-
with:
62-
path: ~/.cache/pip
63-
key: ${{ runner.os }}-pip-${{ hashFiles('./pyproject.toml') }}
64-
restore-keys: |
65-
${{ runner.os }}-pip-
66-
6759
- name: Install Poetry
6860
run: |
6961
python -m pip install --upgrade pip

workflow-templates/deploy-mkdocs-versioned-poetry.yml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -56,14 +56,6 @@ jobs:
5656
with:
5757
python-version: "3.9"
5858

59-
- name: Cache dependencies
60-
uses: actions/cache@v2
61-
with:
62-
path: ~/.cache/pip
63-
key: ${{ runner.os }}-pip-${{ hashFiles('./pyproject.toml') }}
64-
restore-keys: |
65-
${{ runner.os }}-pip-
66-
6759
- name: Install Poetry
6860
run: |
6961
python -m pip install --upgrade pip

0 commit comments

Comments
 (0)