chore: release hotdata v0.4.1 #29
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Check release metadata | |
| on: | |
| pull_request: | |
| paths: | |
| - 'pyproject.toml' | |
| - 'CHANGELOG.md' | |
| permissions: | |
| contents: read | |
| jobs: | |
| check: | |
| name: Verify changelog matches version bump | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 | |
| with: | |
| fetch-depth: 0 | |
| - uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6 | |
| with: | |
| python-version: '3.12' | |
| - name: Check release metadata | |
| run: python scripts/check-release.py | |
| # Build + install + import the wheel here rather than in the regen workflow. | |
| # This job runs on any PR touching pyproject.toml/CHANGELOG.md — which every | |
| # regen PR does (version bump + seeded changelog) — so a packaging or import | |
| # regression surfaces as red CI on the PR instead of silently aborting the | |
| # regen before it can open one. (Step name kept stable to preserve the | |
| # required-check / branch-protection wiring.) | |
| - name: Build, install, and import the wheel | |
| run: | | |
| python -m pip install --upgrade build | |
| python -m build | |
| python -m pip install dist/*.whl | |
| # cd away from the source tree so the import resolves against the installed wheel. | |
| cd /tmp && python -c "import hotdata; print(hotdata.__version__)" |