Repository: cylc/cylc-uiserver (language: python)

Issue:
Towncrier: check fragment names
Thanks to [twisted/towncrier#622](https://github.com/twisted/towncrier/pull/622), `towncrier build` will now fail on CI if anyone creates a changelog fragment with an invalid name.

Also added a changelog entry for #607 after changing my mind and realising one would be useful


setup: types-pkg-resources -> types-setuptools
Dev installation is currently broken due to a "yanked" project ?!

Follow the instructions on this page:

https://pypi.org/project/types-pkg-resources/


Discussion / hints:

Fix patch:
diff --git a/changes.d/607.fix.md b/changes.d/607.fix.md
new file mode 100644
index 00000000..ba5320f4
--- /dev/null
+++ b/changes.d/607.fix.md
@@ -0,0 +1,1 @@
+Log any errors when trying to list the workflow/job log files in the UI.
diff --git a/pyproject.toml b/pyproject.toml
index 9a583248..8eb18055 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -16,6 +16,7 @@ template = "changes.d/changelog-template.jinja"
 underlines = ["", "", ""]
 title_format = "## cylc-uiserver-{version} (Released {project_date})"
 issue_format = "[#{issue}](https://github.com/cylc/cylc-uiserver/pull/{issue})"
+ignore = ["changelog-template.jinja"]
 
 # These changelog sections will be shown in the defined order:
 [[tool.towncrier.type]]
diff --git a/setup.cfg b/setup.cfg
index 32a35150..e92f83f3 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -102,7 +102,7 @@ tests =
     pytest-tornasync>=0.5.0
     # https://github.com/pytest-dev/pytest/issues/12263
     pytest>=6,<8.2
-    towncrier>=23
+    towncrier>=24.7.0
     types-setuptools
     types-requests>2
 all =


Test patch:
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
index 4236335d..d09123ae 100644
--- a/.github/workflows/test.yml
+++ b/.github/workflows/test.yml
@@ -79,8 +79,7 @@ jobs:
         run: mypy
 
       - name: Check changelog
-        if: startsWith(matrix.os, 'ubuntu')
-        run: towncrier build --draft
+        uses: cylc/release-actions/towncrier-draft@v1
 
       - name: Test
         run: pytest