File tree Expand file tree Collapse file tree 1 file changed +41
-0
lines changed Expand file tree Collapse file tree 1 file changed +41
-0
lines changed Original file line number Diff line number Diff line change
1
+ github :
2
+ prebuilds :
3
+ master : true
4
+ pullRequests : true
5
+ pullRequestsFromForks : true
6
+ addCheck : false
7
+ addComment : false
8
+ addBadge : false
9
+ addLabel : false
10
+ tasks :
11
+ - name : setup
12
+ init : |
13
+ pushd /workspace
14
+ wget -qO- https://micro.mamba.pm/api/micromamba/linux-64/latest | tar -xvj bin/micromamba
15
+ popd
16
+ # bootstrap activation commands for other tasks to reuse
17
+ cat <<EOT > /workspace/bin/activate-env.sh
18
+ export MAMBA_ROOT_PREFIX=/workspace/.micromamba
19
+ export MAMBA_EXE=/workspace/bin/micromamba
20
+ $(/workspace/bin/micromamba shell hook --shell=bash)
21
+ export JUPYTER_PREFER_ENV_PATH=1
22
+ micromamba activate
23
+ EOT
24
+ source /workspace/bin/activate-env.sh
25
+ echo "source /workspace/bin/activate-env.sh" >> ~/.bashrc
26
+ micromamba install -n base -y -c conda-forge python=3.10 nodejs=14 yarn
27
+ python -m pip install -e ".[dev,test]" && jlpm && jlpm run build && jlpm develop
28
+ gp sync-done setup
29
+ command : |
30
+ gp sync-done setup
31
+ source /workspace/bin/activate-env.sh
32
+ jupyter notebook --no-browser --JupyterNotebookApp.token='' --JupyterNotebookApp.allow_origin=* --JupyterNotebookApp.tornado_settings='{"headers": {"Content-Security-Policy": "frame-ancestors *"}}'
33
+
34
+ - name : watch
35
+ command : |
36
+ gp sync-await setup
37
+ source /workspace/bin/activate-env.sh
38
+ jlpm watch
39
+
40
+ ports :
41
+ - port : 8888
You can’t perform that action at this time.
0 commit comments