Turn any document into clean, AI-ready Markdown. Local-first desktop app: reads scanned PDFs, batches folders, runs offline, and uses far fewer tokens than vision models.
Python desktop-appdocument-conversionllmlocal-firstmarkdownmarkitdownocrofflinepdf-to-markdownragrustsveltetauri
ci: verify release workflow tool setup
ibrahimqureshae9be0bd64c1ca
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.ymlindex 12e5e73..fe04f83 100644--- a/.github/workflows/ci.yml+++ b/.github/workflows/ci.yml@@ -123,4 +123,6 @@ jobs:with:python-version: "3.12"- name: Run dependency drift check- run: python tools/dependencies/check.py+ run: |+ python tools/dependencies/check.py+ python tools/release/check_workflow_tools.pydiff --git a/.github/workflows/release-candidate.yml b/.github/workflows/release-candidate.ymlindex 2111f82..ed59d6b 100644--- a/.github/workflows/release-candidate.yml+++ b/.github/workflows/release-candidate.yml@@ -159,6 +159,7 @@ jobs:with:python-version: "3.12"- run: python tools/dependencies/check.py+ - run: python tools/release/check_workflow_tools.pybuild-windows-lite:name: RC / Build Windows Litediff --git a/.github/workflows/release.yml b/.github/workflows/release.ymlindex 13149b5..c3d2ec1 100644--- a/.github/workflows/release.yml+++ b/.github/workflows/release.yml@@ -142,6 +142,7 @@ jobs:- uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065with: { python-version: "3.12" }- run: python tools/dependencies/check.py+ - run: python tools/release/check_workflow_tools.pybuild-windows-lite:name: Release / Build Windows Lite@@ -161,6 +162,7 @@ jobs:with: { workspaces: app/src-tauri }- uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065with: { python-version: "3.12" }+ - uses: astral-sh/setup-uv@d4b2f3b6ecc6e67c4457f6d3e41ec42d3d0fcb86- id: versionshell: pwshrun: |diff --git a/tools/release/check_workflow_tools.py b/tools/release/check_workflow_tools.pynew file mode 100644index 0000000..660ad2c--- /dev/null+++ b/tools/release/check_workflow_tools.py@@ -0,0 +1,49 @@+from __future__ import annotations++import re+import sys+from pathlib import Path+++WORKFLOWS = (+ Path(".github/workflows/release-candidate.yml"),+ Path(".github/workflows/release.yml"),+)+JOB_HEADER = re.compile(r"^ ([a-zA-Z0-9_-]+):\s*$", re.MULTILINE)+UV_COMMAND = re.compile(+ r"^\s+(?:uv(?:\.exe)?|&\s+uv(?:\.exe)?|python(?:\.exe)?\s+-m\s+uv)\s+",+ re.IGNORECASE | re.MULTILINE,+)+UV_SETUP = "uses: astral-sh/setup-uv@"+++def job_blocks(text: str) -> list[tuple[str, str]]:+ matches = list(JOB_HEADER.finditer(text))+ blocks: list[tuple[str, str]] = []+ for index, match in enumerate(matches):+ end = matches[index + 1].start() if index + 1 < len(matches) else len(text)+ blocks.append((match.group(1), text[match.start() : end]))+ return blocks+++def main() -> int:+ errors: list[str] = []+ for workflow in WORKFLOWS:+ text = workflow.read_text(encoding="utf-8")+ for job, block in job_blocks(text):+ command = UV_COMMAND.search(block)+ setup = block.find(UV_SETUP)+ if command and (setup < 0 or setup > command.start()):+ errors.append(+ f"{workflow}: job {job!r} runs uv before pinned setup-uv"+ )++ if errors:+ print("\n".join(errors), file=sys.stderr)+ return 1+ print("Release workflow tool setup: OK")+ return 0+++if __name__ == "__main__":+ raise SystemExit(main())