Skip to content

Commit 0de85a0

Browse files
committed
add clean uv cache in build.yml
1 parent ad34182 commit 0de85a0

File tree

2 files changed

+12
-5
lines changed

2 files changed

+12
-5
lines changed

.github/workflows/build.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,13 @@ jobs:
4848
uv run python -c "from osgeo import gdal"
4949
uv run gdalinfo --version
5050
51+
- name: Clean old uv cache and environments
52+
run: |
53+
echo "🧹 Cleaning old uv cache and virtual environments..."
54+
uv cache clear || true
55+
rm -rf .venv || true
56+
rm -f uv.lock || true
57+
5158
- name: Install dependencies
5259
run: |
5360
uv sync --all-extras

.github/workflows/pypi.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,13 @@ jobs:
2525
- name: Setup Python
2626
run: uv python install 3.11
2727

28-
- name: Clean old uv caches
29-
run: |
30-
uv cache clean
31-
rm -rf .venv uv.lock
28+
# - name: Clean old uv caches
29+
# run: |
30+
# uv cache clean
31+
# rm -rf .venv uv.lock
3232

3333
- name: Install dependencies
34-
run: uv sync --all-extras -v # Install all dependencies including dev
34+
run: uv sync --all-extras # Install all dependencies including dev
3535

3636
- name: Build package
3737
run: uv build

0 commit comments

Comments
 (0)