Skip to content

Commit 480971b

Browse files
Replace cache (#950)
1 parent 94f9cb9 commit 480971b

File tree

1 file changed

+6
-9
lines changed

1 file changed

+6
-9
lines changed

.github/workflows/ci.yaml

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -20,16 +20,11 @@ jobs:
2020
- name: Checkout
2121
uses: actions/checkout@v4
2222
- name: Setup Python
23-
uses: actions/setup-python@v2
23+
uses: actions/setup-python@v4
2424
with:
2525
python-version: 3.9
26-
- name: Cache PyPI
27-
uses: actions/cache@v3
28-
with:
29-
key: pip-lint-${{ hashFiles('requirements-dev.txt') }}
30-
path: ~/.cache/pip
31-
restore-keys: |
32-
pip-lint-
26+
cache: 'pip'
27+
cache-dependency-path: '**/requirements*.txt'
3328
- name: Install dependencies
3429
uses: py-actions/py-dependency-install@v4
3530
with:
@@ -58,9 +53,11 @@ jobs:
5853
- name: Checkout
5954
uses: actions/checkout@v4
6055
- name: Set up Python ${{ matrix.python-version }}
61-
uses: actions/setup-python@v2
56+
uses: actions/setup-python@v4
6257
with:
6358
python-version: ${{ matrix.python-version }}
59+
cache: 'pip'
60+
cache-dependency-path: '**/requirements*.txt'
6461
- name: Install dependencies
6562
run: |
6663
pip install --upgrade pip build twine

0 commit comments

Comments
 (0)