From f0430858188e0b0a957cc520bfb2a9cb7e3854db Mon Sep 17 00:00:00 2001 From: Grzegorz Bokota Date: Fri, 10 Apr 2026 20:22:22 +0200 Subject: [PATCH 1/2] feat: Allow select python version used for docs build --- .github/workflows/build_docs.yml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build_docs.yml b/.github/workflows/build_docs.yml index c004920..71b8ccd 100644 --- a/.github/workflows/build_docs.yml +++ b/.github/workflows/build_docs.yml @@ -23,6 +23,10 @@ on: description: "Enter make target: html html-noplot docs slimfast slimgallery" type: string default: "slimfast" + python_version: + description: "Python version used for buid docs" + type: string + default: "3.12" workflow_dispatch: jobs: @@ -49,7 +53,7 @@ jobs: uses: astral-sh/setup-uv@v7 with: version: "latest" - python-version: '3.12' + python-version: ${{ inputs.python_version }} activate-environment: true - name: Cache pooch downloads uses: actions/cache@v5 @@ -69,7 +73,7 @@ jobs: uv pip install --upgrade pip uv pip install "napari/[pyqt5]" --group napari/pyproject.toml:docs env: - UV_CONSTRAINT: ${{ github.workspace }}/napari/resources/constraints/constraints_py3.12_docs.txt + UV_CONSTRAINT: ${{ github.workspace }}/napari/resources/constraints/constraints_py${{ inputs.python_version }}_docs.txt - name: Test import run: | python -c 'import napari; print(napari.__version__)' @@ -79,8 +83,8 @@ jobs: env: GOOGLE_CALENDAR_ID: ${{ secrets.GOOGLE_CALENDAR_ID }} GOOGLE_CALENDAR_API_KEY: ${{ secrets.GOOGLE_CALENDAR_API_KEY }} - PIP_CONSTRAINT: ${{ github.workspace }}/napari/resources/constraints/constraints_py3.12_docs.txt - UV_CONSTRAINT: ${{ github.workspace }}/napari/resources/constraints/constraints_py3.12_docs.txt + PIP_CONSTRAINT: ${{ github.workspace }}/napari/resources/constraints/constraints_py${{ inputs.python_version }}_docs.txt + UV_CONSTRAINT: ${{ github.workspace }}/napari/resources/constraints/constraints_py${{ inputs.python_version }}_docs.txt - name: Upload artifact if: ${{ always() }} uses: actions/upload-artifact@v7 From 50d6268b72a5cb4fe3a2030b9c6a7fffdaf8b2b2 Mon Sep 17 00:00:00 2001 From: Grzegorz Bokota Date: Sat, 11 Apr 2026 08:10:34 +0200 Subject: [PATCH 2/2] Update .github/workflows/build_docs.yml Co-authored-by: Carol Willing --- .github/workflows/build_docs.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build_docs.yml b/.github/workflows/build_docs.yml index 71b8ccd..60d7d7b 100644 --- a/.github/workflows/build_docs.yml +++ b/.github/workflows/build_docs.yml @@ -24,7 +24,7 @@ on: type: string default: "slimfast" python_version: - description: "Python version used for buid docs" + description: "Python version used for build docs" type: string default: "3.12" workflow_dispatch: