Skip to content

Commit b97f1dc

Browse files
committed
fix: Ensure running 'uv sync' and optimize uv cache as instructed by official docs
1 parent a568713 commit b97f1dc

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.github/workflows/default.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,16 @@ jobs:
2020
uses: astral-sh/setup-uv@v5
2121
- name: Build sdist
2222
run: |
23+
uv sync
2324
uv build --sdist
2425
ls -lh dist
2526
- name: Upload artifacts
2627
uses: actions/upload-artifact@v4
2728
with:
2829
name: dist-src
2930
path: dist
31+
- name: Minimize uv cache
32+
run: uv cache prune --ci
3033

3134

3235
bdist_wheel:
@@ -61,6 +64,7 @@ jobs:
6164
- name: Install dependencies
6265
run: |
6366
sudo apt install -y xz-utils
67+
uv sync
6468
- name: Build wheel
6569
run: |
6670
uv run python scripts/build.py --arch ${{ matrix.platform.arch }}
@@ -85,6 +89,8 @@ jobs:
8589
with:
8690
name: dist-${{ matrix.platform.os }}-${{ matrix.pyver }}-${{ matrix.platform.arch }}
8791
path: dist
92+
- name: Minimize uv cache
93+
run: uv cache prune --ci
8894

8995

9096
deploy-to-pypi:

0 commit comments

Comments
 (0)