fix(ci): pin docs-deploy to Python 3.12 - #106
Merged
Merged
Conversation
#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 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Follow-up to #105
After merging #105, the workflow failed again on the same push — a third, previously-masked layer of the same underlying issue (see run 31113516131):
--group docs(from #105) correctly installs themesoscopyproject itself, but that also pulls in the project's own runtime dependencies (av,napari,pyqt5, etc., frompyproject.toml's[project.dependencies]).uv python installwith no version argument installs the latest Python (3.14 on the runner), andav==15.0.0has no prebuilt wheel for cp314 (only up to cp313), souvtries to build it from source — which fails because the runner has no ffmpeg dev headers.This is the same wheel-availability problem as the original
lxmlissue, just one layer deeper. TheBuild & Testworkflow already proves this exact dependency set installs cleanly on Python 3.12/3.13 (it runs a["3.12", "3.13"]matrix on every push).Fix
Verification
uv run --python 3.12 --no-default-groups --group docs mkdocs build --verboseexits 0 locally — installs cleanly (prebuilt wheels foravetc. on 3.12),mesoscopyimports, all pages including the CLI reference build.🤖 Generated with Claude Code