Skip to content
Open
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
2 changes: 1 addition & 1 deletion .github/workflows/check-notebook-license.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Check Notebook License Footers

on:
pull_request:
branches: ['main']
branches: ['main', 'staging']
types: [opened, reopened, ready_for_review, synchronize]
workflow_dispatch:

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/check-notebook-outputs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Check Notebook Outputs

on:
pull_request:
branches: ['main']
branches: ['main', 'staging']
types: [opened, reopened, ready_for_review, synchronize]
workflow_dispatch:

Expand Down
10 changes: 9 additions & 1 deletion .github/workflows/execute-notebooks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Execute Notebooks

on:
pull_request:
branches: ['main']
branches: ['main', 'staging']
types: [opened, reopened, ready_for_review, synchronize]
workflow_dispatch:

Expand Down Expand Up @@ -70,6 +70,14 @@ jobs:
continue
fi

# Skip notebooks that authenticate with the qBraid API when no key is
# available (secrets are not exposed to pull_request runs from forks)
if [ -z "$QBRAID_API_KEY" ] && grep -qE "QbraidProvider|QbraidClient" "$nb"; then
summary="${summary}| ${name} | :white_circle: SKIPPED (no API key on fork PRs) |\n"
skipped=$((skipped + 1))
continue
fi

echo "::group::Executing $nb"
if .venv/bin/jupyter nbconvert --to notebook --execute \
--ExecutePreprocessor.kernel_name=notebook-env \
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/format.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Format

on:
pull_request:
branches: ['main']
branches: ['main', 'staging']
types: [opened, reopened, ready_for_review, synchronize]
workflow_dispatch:

Expand Down
Loading