Skip to content

Commit 197a6ed

Browse files
committed
fix CI for PyPI upload
1 parent e558e43 commit 197a6ed

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

.github/workflows/actions.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,11 +134,20 @@ jobs:
134134
uses: actions/setup-python@v4
135135
with:
136136
python-version: '3.10'
137+
- name: Get pip cache dir
138+
id: pip-cache
139+
run: |
140+
python -m pip install --upgrade pip setuptools
141+
echo "dir=$(pip cache dir)" >> $GITHUB_OUTPUT
142+
- name: pip cache
143+
uses: actions/cache@v3
144+
with:
145+
path: ${{ steps.pip-cache.outputs.dir }}
146+
key: ${{ runner.os }}-pip-${{ hashFiles('setup.py') }}
137147
- name: Install dependencies
138148
run: |
139149
python -m pip install --upgrade pip setuptools wheel twine
140150
pip install -e ".[build]" --progress-bar off --upgrade
141-
pip uninstall keras-tuner
142151
- name: Build a binary wheel and a source tarball
143152
run: >-
144153
python pip_build.py

0 commit comments

Comments
 (0)