Skip to content

Commit 9f096aa

Browse files
committed
fix CI: regenerate workflows, update uv.lock, format script
- Regenerate misc.yml for new changelog/new-changelog tox envs - Update uv.lock for towncrier dependency - Apply ruff formatting to check_changelog_fragment.py Assisted-by: Claude Opus 4.6
1 parent fd3eef6 commit 9f096aa

3 files changed

Lines changed: 57 additions & 9 deletions

File tree

.github/workflows/misc.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,44 @@ env:
2929

3030
jobs:
3131

32+
changelog:
33+
name: changelog
34+
runs-on: ubuntu-latest
35+
timeout-minutes: 30
36+
steps:
37+
- name: Checkout repo @ SHA - ${{ github.sha }}
38+
uses: actions/checkout@v4
39+
40+
- name: Set up Python 3.11
41+
uses: actions/setup-python@v5
42+
with:
43+
python-version: "3.11"
44+
45+
- name: Install tox
46+
run: pip install tox-uv
47+
48+
- name: Run tests
49+
run: tox -e changelog
50+
51+
new-changelog:
52+
name: new-changelog
53+
runs-on: ubuntu-latest
54+
timeout-minutes: 30
55+
steps:
56+
- name: Checkout repo @ SHA - ${{ github.sha }}
57+
uses: actions/checkout@v4
58+
59+
- name: Set up Python 3.11
60+
uses: actions/setup-python@v5
61+
with:
62+
python-version: "3.11"
63+
64+
- name: Install tox
65+
run: pip install tox-uv
66+
67+
- name: Run tests
68+
run: tox -e new-changelog
69+
3270
spellcheck:
3371
name: spellcheck
3472
runs-on: ubuntu-latest

scripts/check_changelog_fragment.py

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -64,16 +64,10 @@ def main():
6464
print("⚠ No changelog fragment found on this branch.")
6565
print()
6666
print("Create one with:")
67-
print(
68-
' tox -e new-changelog -- PR_NUMBER TYPE "Description"'
69-
)
70-
print(
71-
" where TYPE is one of: added, changed, deprecated, removed, fixed"
72-
)
67+
print(' tox -e new-changelog -- PR_NUMBER TYPE "Description"')
68+
print(" where TYPE is one of: added, changed, deprecated, removed, fixed")
7369
print()
74-
print(
75-
"Or skip this check with: SKIP=changelog tox -e precommit"
76-
)
70+
print("Or skip this check with: SKIP=changelog tox -e precommit")
7771
return 1
7872

7973

uv.lock

Lines changed: 16 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)