mirror of
https://github.com/jupyter/notebook.git
synced 2024-11-21 01:11:21 +08:00
ac3c882a24
* Enable lerna caching for build scripts * Fix script definitions * Lint * simplify cacheable tasks * Update to lerna 7 * update config * cleanup * Stay on lerna 6 for now * Revert "cleanup" This reverts commit c061fc07812e7ae231ff8eeedff8ed75f89e4a35. * lint * Skip cache when building prod * Cache labextension builds * Update `targetDefaults` * Update dev command * Fix dependencies * Add missing dependency * fix dep order * fix script deps * Update scripts * Update scripts dependencies * Add back scripts * lint * cache more * Mention task caching in contributing guide
58 lines
1.8 KiB
YAML
58 lines
1.8 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=18
|
|
source /workspace/bin/activate-env.sh
|
|
python -m pip install -e ".[dev,test]" && jlpm run build && jlpm develop
|
|
gp sync-done setup
|
|
command: |
|
|
gp sync-done setup
|
|
source /workspace/bin/activate-env.sh
|
|
jupyter notebook --no-browser --ServerApp.token='' --ServerApp.allow_remote_access=True
|
|
|
|
- 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
|
|
|
|
- name: docs
|
|
command: |
|
|
gp sync-await setup
|
|
sudo apt-get update
|
|
sudo apt install enchant-2 -y
|
|
wget https://github.com/jgm/pandoc/releases/download/2.14.2/pandoc-2.14.2-1-amd64.deb -O /tmp/pandoc.deb && sudo dpkg -i /tmp/pandoc.deb
|
|
source /workspace/bin/activate-env.sh
|
|
hatch run docs:build
|
|
hatch run docs:serve
|
|
|
|
ports:
|
|
- port: 8888
|