From a0fe87be3994121636bb6c36386532658a080e35 Mon Sep 17 00:00:00 2001 From: Constantinos Eleftheriou Date: Thu, 6 Aug 2026 16:02:13 +0100 Subject: [PATCH] fix(ci): pin docs-deploy to Python 3.12 for prebuilt wheel availability #105 fixed the missing-project-import issue by using --group docs instead of --only-group docs, but that also installs mesoscopy's own runtime dependencies (av, napari, pyqt5, etc., per pyproject.toml [project.dependencies]). uv python install with no version picks the latest Python (3.14 on the runner), and av==15.0.0 has no prebuilt wheel for cp314 -- only up to cp313 -- so uv falls back to building from source, which fails because the runner has no ffmpeg dev headers: Package libavformat was not found in the pkg-config search path. The Build & Test workflow already proves 3.12/3.13 install this same dependency set cleanly (it runs the matrix against both). Pin the docs-deploy job to 3.12 to match. Verified locally: `uv run --python 3.12 --no-default-groups --group docs mkdocs build --verbose` exits 0. Co-Authored-By: Claude Sonnet 5 --- .github/workflows/deploy-docs.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy-docs.yml b/.github/workflows/deploy-docs.yml index a5508e1..ea118bd 100644 --- a/.github/workflows/deploy-docs.yml +++ b/.github/workflows/deploy-docs.yml @@ -17,7 +17,7 @@ jobs: uses: astral-sh/setup-uv@v6 - name: Set up Python - run: uv python install + run: uv python install 3.12 - name: Deploy docs - run: uv run --no-default-groups --group docs mkdocs gh-deploy --force --clean --verbose \ No newline at end of file + run: uv run --python 3.12 --no-default-groups --group docs mkdocs gh-deploy --force --clean --verbose \ No newline at end of file