Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,3 +87,23 @@ jobs:
body_path: release-notes.md
generate_release_notes: true
files: dist/*

- name: Verify uploaded package (real install + import)
# Defends against silent failures where PyPI accepts the upload
# but the package isn't actually usable (renamed module, missing
# __init__, broken native binding, ABI mismatch, etc.).
# Mirrors CMF v0.1.7's step — see devcontainer reports/11.
# DCEBE's first release will exercise this; the import alone
# proves the wheel installs and the C++ binding loads. A
# representative `estimate_bat(...)` call can be added once the
# public API is finalised in the port.
run: |
# Brief delay so PyPI's CDN settles the new version.
sleep 30
pip install --no-cache-dir --index-url https://pypi.org/simple/ dcebe
python -c "
import dcebe
from importlib.metadata import version
assert hasattr(dcebe, 'estimate_bat'), 'estimate_bat missing from public API'
print(f'dcebe {version(\"dcebe\")} verify OK')
"
Loading