mirror of
https://github.com/jupyter/notebook.git
synced 2025-04-06 13:50:29 +08:00
* Update deps * Drop `skipLibCheck` * Integrity fixes * Fix deps * Enable the file size column by default * Fix yarn.lock * Enable file name search toolbar item * Update Playwright Snapshots * Update Playwright Snapshots * Try set overflow options explicitly * Update Playwright Snapshots * Update to the latest Lumino 2 rc * Fix yarn.lock * Update Playwright Snapshots --------- Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
48 lines
1.5 KiB
YAML
48 lines
1.5 KiB
YAML
github:
|
|
prebuilds:
|
|
master: true
|
|
pullRequests: true
|
|
pullRequestsFromForks: true
|
|
addCheck: false
|
|
addComment: false
|
|
addBadge: false
|
|
addLabel: false
|
|
tasks:
|
|
- name: setup
|
|
init: |
|
|
pushd /workspace
|
|
wget -qO- https://micro.mamba.pm/api/micromamba/linux-64/latest | tar -xvj bin/micromamba
|
|
popd
|
|
# bootstrap activation commands for other tasks to reuse
|
|
cat <<EOT > /workspace/bin/activate-env.sh
|
|
export MAMBA_ROOT_PREFIX=/workspace/.micromamba
|
|
export MAMBA_EXE=/workspace/bin/micromamba
|
|
$(/workspace/bin/micromamba shell hook --shell=bash)
|
|
export JUPYTER_PREFER_ENV_PATH=1
|
|
micromamba activate
|
|
EOT
|
|
source /workspace/bin/activate-env.sh
|
|
micromamba install -n base -y -c conda-forge python=3.11 nodejs=14 yarn=1
|
|
source /workspace/bin/activate-env.sh
|
|
python -m pip install -e ".[dev,test]" && jlpm && jlpm run build && jlpm develop
|
|
gp sync-done setup
|
|
command: |
|
|
gp sync-done setup
|
|
source /workspace/bin/activate-env.sh
|
|
jupyter notebook --no-browser --JupyterNotebookApp.token='' --JupyterNotebookApp.allow_origin=* --JupyterNotebookApp.tornado_settings='{"headers": {"Content-Security-Policy": "frame-ancestors *"}}'
|
|
|
|
- name: auto-activate
|
|
command: |
|
|
gp sync-await setup
|
|
source /workspace/bin/activate-env.sh
|
|
jlpm watch
|
|
|
|
- name: shell
|
|
command: |
|
|
gp sync-await setup
|
|
echo "source /workspace/bin/activate-env.sh" >> ~/.bashrc
|
|
source /workspace/bin/activate-env.sh
|
|
|
|
ports:
|
|
- port: 8888
|