Skip to content

Commit ad21bc0

Browse files
Dreamsorcererbdraco
authored andcommitted
Use setup-python for cache
1 parent 5a1c3be commit ad21bc0

File tree

1 file changed

+4
-19
lines changed

1 file changed

+4
-19
lines changed

.github/workflows/ci-cd.yml

Lines changed: 4 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -50,13 +50,8 @@ jobs:
5050
uses: actions/setup-python@v5
5151
with:
5252
python-version: 3.13
53-
- name: Cache PyPI
54-
uses: actions/[email protected]
55-
with:
56-
key: pip-lint-${{ hashFiles('requirements/*.txt') }}
57-
path: ~/.cache/pip
58-
restore-keys: |
59-
pip-lint-
53+
cache: 'pip'
54+
cache-dependency-path: 'requirements/*.txt'
6055
- name: Update pip, wheel, setuptools, build, twine
6156
run: |
6257
python -m pip install -U pip wheel setuptools build twine
@@ -173,18 +168,8 @@ jobs:
173168
with:
174169
allow-prereleases: true
175170
python-version: ${{ matrix.pyver }}
176-
- name: Get pip cache dir
177-
id: pip-cache
178-
run: |
179-
echo "dir=$(pip cache dir)" >> "${GITHUB_OUTPUT}"
180-
shell: bash
181-
- name: Cache PyPI
182-
uses: actions/[email protected]
183-
with:
184-
key: pip-ci-${{ runner.os }}-${{ matrix.pyver }}-${{ matrix.no-extensions }}-${{ hashFiles('requirements/*.txt') }}
185-
path: ${{ steps.pip-cache.outputs.dir }}
186-
restore-keys: |
187-
pip-ci-${{ runner.os }}-${{ matrix.pyver }}-${{ matrix.no-extensions }}-
171+
cache: 'pip'
172+
cache-dependency-path: 'requirements/*.txt'
188173
- name: Update pip, wheel, setuptools, build, twine
189174
run: |
190175
python -m pip install -U pip wheel setuptools build twine

0 commit comments

Comments
 (0)