-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (34 loc) · 1.35 KB
/
Copy pathcheck-release.yml
File metadata and controls
40 lines (34 loc) · 1.35 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
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__)"