Skip to content

Commit 22e0018

Browse files
Move checkout before uv setup and verify artifacts
- Move sparse checkout to the beginning (before uv setup) - Include uv.lock in sparse checkout for dependency resolution - Add verification step to assert wheel and sdist artifacts exist - List dist/ contents for debugging if tests fail This ensures the workflow fails fast if build artifacts are missing or malformed. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent ce09971 commit 22e0018

File tree

2 files changed

+22
-7
lines changed

2 files changed

+22
-7
lines changed

.github/workflows/test.yml

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,27 @@ jobs:
3131
os: [ubuntu-latest, windows-latest]
3232

3333
steps:
34+
- name: Checkout test files
35+
uses: actions/checkout@v4
36+
with:
37+
sparse-checkout: |
38+
testing
39+
uv.lock
40+
sparse-checkout-cone-mode: false
41+
3442
- name: Download built packages
3543
uses: actions/download-artifact@v4
3644
with:
3745
name: Packages
3846
path: dist
3947

48+
- name: Verify artifacts exist
49+
run: |
50+
ls -la dist/
51+
test -f dist/*.whl || (echo "No wheel found!" && exit 1)
52+
test -f dist/*.tar.gz || (echo "No sdist found!" && exit 1)
53+
shell: bash
54+
4055
- name: Install uv
4156
uses: astral-sh/setup-uv@v7
4257
with:
@@ -45,13 +60,6 @@ jobs:
4560
- name: Set up Python ${{ matrix.python }}
4661
run: uv python install ${{ matrix.python }}
4762

48-
- name: Download test files
49-
uses: actions/checkout@v4
50-
with:
51-
sparse-checkout: |
52-
testing
53-
sparse-checkout-cone-mode: false
54-
5563
- name: Run tests with built wheel
5664
run: uv run --with dist/*.whl --with pytest pytest testing --color=yes
5765

uv.lock

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)