diff --git a/.github/workflows/build_main_documentation.yml b/.github/workflows/build_main_documentation.yml index abcc672e..965eb36d 100644 --- a/.github/workflows/build_main_documentation.yml +++ b/.github/workflows/build_main_documentation.yml @@ -46,6 +46,9 @@ on: convert_notebooks: type: boolean description: "Convert notebooks to markdown files before building docs." + python_version: + type: string + description: "Python version for the build venv (e.g. '3.11'). Defaults to the runner's system Python." secrets: hf_token: required: true @@ -120,7 +123,7 @@ jobs: - name: Setup environment shell: bash run: | - uv venv + uv venv ${{ inputs.python_version && format('--python {0}', inputs.python_version) || '' }} source .venv/bin/activate cd doc-builder git pull origin main diff --git a/.github/workflows/build_pr_documentation.yml b/.github/workflows/build_pr_documentation.yml index 6cddcbb0..b74f5d61 100644 --- a/.github/workflows/build_pr_documentation.yml +++ b/.github/workflows/build_pr_documentation.yml @@ -55,6 +55,9 @@ on: type: boolean default: false description: "Fail doc build when runnable warnings are emitted. Requires `additional_args` to include `--emit-warning`." + python_version: + type: string + description: "Python version for the build venv (e.g. '3.11'). Defaults to the runner's system Python." jobs: @@ -133,7 +136,7 @@ jobs: - name: Setup environment shell: bash run: | - uv venv + uv venv ${{ inputs.python_version && format('--python {0}', inputs.python_version) || '' }} source .venv/bin/activate cd doc-builder git pull origin ${{ inputs.doc_builder_revision }}