Skip to content

Commit 13f555b

Browse files
committed
build: check the number of built distributions
1 parent 40c40b6 commit 13f555b

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/kit.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,10 +292,15 @@ jobs:
292292
merge-multiple: true
293293

294294
- name: "List distributions"
295+
env:
296+
# PYVERSIONS: changing the list of versions will change the number of
297+
# expected distributions.
298+
EXPECTED: 63
295299
run: |
296300
ls -alR
297-
echo "Number of dists, there should be 72:"
301+
echo "Number of dists, there should be $EXPECTED:"
298302
ls -1 coverage-* | wc -l
303+
files=$(ls coverage-* 2>/dev/null | wc -l) && [ "$files" -eq $EXPECTED ] || exit 1
299304
300305
- name: "Sign artifacts"
301306
uses: sigstore/gh-action-sigstore-python@f514d46b907ebcd5bedc05145c03b69c1edd8b46 # v3.0.0

0 commit comments

Comments
 (0)