Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .github/workflows/build_and_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,11 @@ on:
required: false
type: boolean
default: false
ref:
description: 'Branch, tag, or SHA to check out before building (defaults to the calling workflow''s ref).'
required: false
type: string
default: ''
workflow_dispatch:
inputs:
full_matrix:
Expand Down Expand Up @@ -196,6 +201,8 @@ jobs:

steps:
- uses: actions/checkout@v5
with:
ref: ${{ inputs.ref || github.ref }}
- name: Cache cibuildwheel + pip + Homebrew
uses: actions/cache@v5
with:
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/build_docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@ on:
required: false
type: boolean
default: true
ref:
description: 'Branch, tag, or SHA to build docs for (defaults to the dispatched ref).'
required: false
type: string
default: ''

concurrency:
group: docs-${{ github.ref }}
Expand All @@ -35,6 +40,7 @@ jobs:
# Docs only need the ubuntu-latest / python-3.11 wheel; skip the full
# OS/Python matrix and the wheel/C++ test jobs.
minimal: true
ref: ${{ inputs.ref }}

build_docs:
name: Build docs
Expand All @@ -48,6 +54,7 @@ jobs:
steps:
- uses: actions/checkout@v5
with:
ref: ${{ inputs.ref || github.ref }}
# gitpython (used by python/docs/source/conf.py to derive version)
# needs the full history; the default depth=1 leaves it unable to
# resolve HEAD's commit object on some refs.
Expand Down
Loading