release_test.sh 1.1 KB

12345678910111213141516171819202122232425262728293031323334
  1. # Test a release wheel in a fresh conda environment with and without installed
  2. # extensions
  3. set -v
  4. old="${CONDA_DEFAULT_ENV}"
  5. JLAB_TEST_ENV="${CONDA_DEFAULT_ENV}_test"
  6. TEST_DIR="$WORK_DIR/test"
  7. conda deactivate
  8. conda remove --all -y -n "$JLAB_TEST_ENV"
  9. conda create --override-channels --strict-channel-priority -c conda-forge -c anaconda -y -n "$JLAB_TEST_ENV" notebook nodejs twine
  10. conda activate "$JLAB_TEST_ENV"
  11. pip install dist/*.whl
  12. mkdir -p $TEST_DIR
  13. cp examples/notebooks/*.ipynb $TEST_DIR/
  14. pushd $TEST_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. popd