diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a3c32fd..9c15ba3 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -19,7 +19,7 @@ env: TOOL_PYTHON_VERSION: "3.11" COVERAGE_PYTHON: "3.14" HATCH_VERSION: "1.18.2" - UV_VERSION: "0.13.8" + UV_VERSION: "0.13.9" DISTRIBUTION_NAME: "rocheometry" IMPORT_NAME: "rocheometry" DOCS_ENABLED: "true" @@ -430,6 +430,32 @@ jobs: exit 1 fi + - name: Extract release notes + if: github.ref_type == 'tag' + run: | + mkdir -p release-notes + awk -v heading="## [$GITHUB_REF_NAME]" ' + index($0, heading) == 1 { found = 1; next } + found && (/^## / || /^\[[^]]+\]: /) { exit } + found + ' docs/CHANGELOG.md > release-notes/notes.md + if ! grep -q '[^[:space:]]' release-notes/notes.md; then + echo "docs/CHANGELOG.md has no '## [$GITHUB_REF_NAME]' section" >&2 + exit 1 + fi + cat >> release-notes/notes.md <=6,<7", ] check-code = [ - "ruff==0.17.5", # keep consistent with pre-commit-config.yaml + "ruff==0.17.6", # keep consistent with pre-commit-config.yaml ] check-fmt = [ { include-group = "check-code" }, ] check-types = [ - "pyrefly==1.4.1", + "pyrefly==1.5", # The accuracy, fits and speed tools are type-checked too. "scipy", "types-pyyaml",