release_test.sh 1.1 KB

12345678910111213141516171819202122232425262728293031323334
  1. # Test a release wheel in a fresh conda environment with and without installed
  2. # extensions
  3. old=${CONDA_DEFAULT_ENV}
  4. env=${CONDA_DEFAULT_ENV}_test
  5. conda deactivate
  6. conda remove --all -y -n $env
  7. conda create --override-channels --strict-channel-priority -c conda-forge -c anaconda -y -n $env notebook nodejs twine
  8. conda activate $env
  9. pip install dist/*.whl
  10. WORK_DIR='/tmp/$env'
  11. rm -rf $WORK_DIR
  12. mkdir -p $WORK_DIR
  13. cp examples/notebooks/*.ipynb $WORK_DIR
  14. cd $WORK_DIR
  15. python -m jupyterlab.browser_check
  16. jupyter labextension install @jupyterlab/fasta-extension --no-build
  17. jupyter labextension install @jupyterlab/geojson-extension --no-build
  18. jupyter labextension install @jupyterlab/plotly-extension --no-build
  19. jupyter labextension install @jupyter-widgets/jupyterlab-manager --no-build
  20. jupyter labextension install bqplot --no-build
  21. jupyter labextension install jupyter-leaflet --no-build
  22. jupyter lab clean
  23. conda install --override-channels --strict-channel-priority -c conda-forge -c anaconda -y ipywidgets altair matplotlib vega_datasets
  24. jupyter lab build && python -m jupyterlab.browser_check && jupyter lab
  25. cd /tmp/$old