|
27 | 27 | steps: |
28 | 28 | - uses: actions/checkout@v4 |
29 | 29 |
|
| 30 | + - uses: astral-sh/setup-uv@v6 |
| 31 | + with: |
| 32 | + enable-cache: true |
| 33 | + cache-dependency-glob: uv.lock |
| 34 | + |
30 | 35 | - name: Validate version |
31 | 36 | run: | |
32 | 37 | printf '%s' "${{ inputs.version }}" | grep -Eq '^[0-9]+\.[0-9]+\.[0-9]+$' \ |
|
38 | 43 | - name: Verify coherence |
39 | 44 | run: bash scripts/check-version-coherence.sh |
40 | 45 |
|
| 46 | + - name: Verify the lockfile (the meaningful CI check for a version-only bump) |
| 47 | + run: uv sync --locked |
| 48 | + |
41 | 49 | - name: Open (or update) the release PR |
42 | 50 | env: |
43 | 51 | GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
@@ -65,14 +73,15 @@ jobs: |
65 | 73 | set -euo pipefail |
66 | 74 | # A PR opened by GITHUB_TOKEN does not trigger ci.yml (GitHub's loop |
67 | 75 | # prevention), so the required `ci-success` check would never report and |
68 | | - # would block the merge. This diff is version/spec strings ONLY and its |
69 | | - # coherence is verified by the step above, so post a passing `ci-success` |
70 | | - # status on the release commit directly. Branch protection matches the |
71 | | - # context name, so this satisfies the gate. |
| 76 | + # would block the merge. This diff is version/spec/lock strings ONLY, and |
| 77 | + # the steps above verified both coherence AND `uv sync --locked` — the |
| 78 | + # only checks that can change for a version bump — so post a passing |
| 79 | + # `ci-success` status on the release commit directly. Branch protection |
| 80 | + # matches the context name, so this satisfies the gate. |
72 | 81 | # Safe ONLY because nothing but set-version.sh ever touches a release/* |
73 | 82 | # branch — never hand-push code there. |
74 | 83 | SHA="$(git rev-parse HEAD)" |
75 | 84 | gh api -X POST "repos/${{ github.repository }}/statuses/$SHA" \ |
76 | 85 | -f state=success \ |
77 | 86 | -f context=ci-success \ |
78 | | - -f description="version-only release bump; coherence verified by release workflow" |
| 87 | + -f description="version-only release bump; coherence + lockfile verified by release workflow" |
0 commit comments