This repository was archived by the owner on Apr 7, 2026. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : CI
2+ on :
3+ pull_request :
4+ jobs :
5+ ci :
6+ name : CI
7+ runs-on : ubuntu-latest
8+ steps :
9+ - name : Checkout repository
10+ uses : actions/checkout@v4
11+ - name : Install uv
12+ uses : astral-sh/setup-uv@v6
13+ with :
14+ version : " 0.8.2"
15+ - name : Static code check
16+ run : uv run poe checker
17+ - name : Check docs build
18+ working-directory : ./docs
19+ run : |
20+ uv sync --group docs
21+ make html
22+ - name : Check PR title style
23+ uses : actions/github-script@v7
24+ with :
25+ script : |
26+ const title = context.payload.pull_request.title;
27+ const labels = context.payload.pull_request.labels.map(l => l.name);
28+ if (labels.includes('dev')) {
29+ console.log('Skipping PR title check due to dev label.');
30+ return;
31+ }
32+ const regex = /^(feat|fix|refactor|doc|perf|style|test|chore|revert)!?:[ ][a-z].*$/;
33+ if (!regex.test(title)) {
34+ core.setFailed(
35+ `PR title "${title}" does not match the expected conventional commit format`
36+ );
37+ }
Original file line number Diff line number Diff line change 2727 echo "::error ::Tag doesn't match project version"
2828 exit 1
2929 - name : Install uv
30- uses : astral-sh/setup-uv@v5
30+ uses : astral-sh/setup-uv@v6
3131 with :
32- version : " 0.5.20 "
32+ version : " 0.8.2 "
3333 - name : Build package
3434 run : uv build
3535 - name : Publish package to PyPI
Original file line number Diff line number Diff line change 44# You can set these variables from the command line, and also
55# from the environment for the first two.
66SPHINXOPTS ?=
7- SPHINXBUILD ?= sphinx-build
7+ SPHINXBUILD ?= uv run sphinx-build
88SOURCEDIR = source
99BUILDDIR = build
1010
Original file line number Diff line number Diff line change @@ -12,7 +12,8 @@ dependencies = [
1212 " anyio>=4.8.0" ,
1313]
1414
15- [project .optional-dependencies ]
15+ [dependency-groups ]
16+ dev = [" mypy>=1.14.1" , " poethepoet>=0.36.0" , " ruff>=0.9.1" ]
1617docs = [
1718 " enum-tools[sphinx]>=0.12.0" ,
1819 " furo>=2024.8.6" ,
@@ -21,9 +22,6 @@ docs = [
2122 " sphinx-autodoc-typehints>=3.0.0" ,
2223]
2324
24- [dependency-groups ]
25- dev = [" mypy>=1.14.1" , " poethepoet>=0.36.0" , " ruff>=0.9.1" ]
26-
2725[build-system ]
2826requires = [" hatchling" ]
2927build-backend = " hatchling.build"
You can’t perform that action at this time.
0 commit comments