Skip to content

Commit d4c7561

Browse files
authored
Merge pull request #487 from neuromatch/staging
Make ipywidgets stub configurable
2 parents d89d6d9 + 12ac9d2 commit d4c7561

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

.github/actions/setup-ci-tools/action.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ inputs:
1010
description: 'Commit message to parse for branch override'
1111
required: false
1212
default: ''
13+
stub-widgets:
14+
description: 'Install ipywidgets stub for headless execution (disable for book builds)'
15+
required: false
16+
default: 'true'
1317

1418
outputs:
1519
nmaci-branch:
@@ -90,6 +94,7 @@ runs:
9094
run: echo "ci/" >> .gitignore
9195

9296
- name: Stub ipywidgets for headless kernel execution
97+
if: inputs.stub-widgets == 'true'
9398
shell: bash
9499
run: |
95100
mkdir -p ~/.ipython/profile_default/startup

.github/workflows/publish-book.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ jobs:
3939
uses: ./.github/actions/setup-ci-tools
4040
with:
4141
commit-message: ${{ env.COMMIT_MESSAGE }}
42+
stub-widgets: 'false'
4243

4344
- name: Setup rendering dependencies
4445
if: "!contains(env.COMMIT_MESSAGE, 'skip ci')"

0 commit comments

Comments
 (0)