Skip to content

Commit cce2087

Browse files
fix: optimize GitHub Actions workflow to avoid pip cache warning in root project
1 parent fef4b0d commit cce2087

File tree

1 file changed

+4
-10
lines changed

1 file changed

+4
-10
lines changed

.github/workflows/setup.yaml

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -46,12 +46,6 @@ jobs:
4646
uses: actions/setup-python@v5
4747
with:
4848
python-version: ${{ inputs.python-version }}
49-
cache: 'pip'
50-
cache-dependency-path: |
51-
**/requirements*.txt
52-
**/pyproject.toml
53-
**/poetry.lock
54-
**/Pipfile.lock
5549

5650
- name: Install uv
5751
uses: astral-sh/setup-uv@v5
@@ -62,14 +56,14 @@ jobs:
6256
id: get-uv-cache
6357
run: echo "UV_CACHE_DIR=$(uv cache dir)" >> $GITHUB_OUTPUT
6458

59+
- name: Install dependencies
60+
if: ${{ inputs.install-deps != 'none' }}
61+
run: uv sync --extra ${{ inputs.install-deps }}
62+
6563
- name: Cache uv packages
6664
uses: actions/cache@v4
6765
with:
6866
path: ${{ steps.get-uv-cache.outputs.UV_CACHE_DIR }}
6967
key: ${{ runner.os }}-uv-${{ hashFiles('**/pyproject.toml', '**/requirements*.txt') }}
7068
restore-keys: |
7169
${{ runner.os }}-uv-
72-
73-
- name: Install dependencies
74-
if: ${{ inputs.install-deps != 'none' }}
75-
run: uv sync --extra ${{ inputs.install-deps }}

0 commit comments

Comments
 (0)