Skip to content

Commit 4cc9bd7

Browse files
committed
build(ci): use cache from setup-python action
1 parent 2c8b637 commit 4cc9bd7

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

.github/workflows/publish.yml

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -32,16 +32,11 @@ jobs:
3232
uses: actions/setup-python@v4
3333
with:
3434
python-version: 3.11
35-
- name: Cache pip
36-
uses: actions/cache@v3
37-
with:
38-
path: ~/.cache/pip
39-
key: ${{ runner.os }}-pip-${{ hashFiles('requirements-dev.txt') }}
40-
restore-keys: ${{ runner.os }}-pip-
35+
cache: 'pip'
4136
- name: Install dependencies
4237
run: |
43-
python3 -m pip install poetry
44-
python3 -m pip install -r requirements.txt
38+
pip install poetry
39+
pip install -r requirements.txt
4540
- name: Publish package to PyPI
4641
env:
4742
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}

0 commit comments

Comments
 (0)