Skip to content

Commit c3be1c7

Browse files
authored
Add check_sdist job to validate source wheels
1 parent 251de18 commit c3be1c7

1 file changed

Lines changed: 13 additions & 1 deletion

File tree

.github/workflows/buildwheels.yml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,9 +177,21 @@ jobs:
177177
name: cibw-sdist
178178
path: dist/*.tar.gz
179179

180+
check_sdist:
181+
name: Check if source wheels are compilable
182+
runs-on: ubuntu-latest
183+
needs: [make_sdist]
184+
steps:
185+
- uses: actions/download-artifact@v5
186+
with:
187+
pattern: dist-*
188+
merge-multiple: true
189+
path: dist
190+
- run: pip install --no-binary PyPartMC dist/PyPartMC*tar.gz
191+
180192
dist_upload:
181193
runs-on: ubuntu-latest
182-
needs: [build_wheels, make_sdist]
194+
needs: [build_wheels, check_sdist]
183195
environment: pypi
184196
permissions:
185197
id-token: write

0 commit comments

Comments
 (0)