Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: Build MyBinder cache properly #64

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from 2 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
1 change: 0 additions & 1 deletion .binder/postBuild
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
jupyter labextension install jupyterlab-plotly
pip install neurots neurom[plotly] diameter-synthesis>=0.4
2 changes: 2 additions & 0 deletions .binder/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
neurom[plotly]
neurots
2 changes: 1 addition & 1 deletion .binder/runtime.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
python-3.8
python-3.10
12 changes: 6 additions & 6 deletions .github/workflows/my_binder-build.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: Trigger MyBinder build

on:
pull_request: # TODO: REMOVE THIS BEFORE MERGING
push:
branches:
- 'main'
Expand All @@ -11,11 +12,10 @@ jobs:
trigger-binder-build:
name: Launch the build of the docker image used by MyBinder
runs-on: ubuntu-latest
continue-on-error: true
continue-on-error: false
steps:
- uses: s-weigand/trigger-mybinder-build@v1
- name: cache binder build on mybinder.org
uses: jupyterhub/repo2docker-action@master
with:
target-repo: BlueBrain/NeuroTS
service-name: gh
target-state: ${{github.ref_name}}
debug: true
NO_PUSH: true
MYBINDERORG_TAG: ${{ github.event.ref }} # This builds the container on mybinder.org with the branch that was pushed on.