release_test.sh 1.1 KB

12345678910111213141516171819202122232425262728293031
  1. # Test a release wheel in a fresh conda environment with and without installed
  2. # extensions
  3. set -x
  4. set -e
  5. old="${CONDA_DEFAULT_ENV}"
  6. JLAB_TEST_ENV="${CONDA_DEFAULT_ENV}_test"
  7. TEST_DIR=$(mktemp -d -t $JLAB_TEST_ENV)
  8. conda create --override-channels --strict-channel-priority -c conda-forge -c anaconda -y -n "$JLAB_TEST_ENV" notebook nodejs twine
  9. conda activate "$JLAB_TEST_ENV"
  10. pip install dist/*.whl
  11. cp examples/notebooks/*.ipynb $TEST_DIR/
  12. pushd $TEST_DIR
  13. python -m jupyterlab.browser_check
  14. jupyter labextension install @jupyterlab/fasta-extension --no-build
  15. jupyter labextension install @jupyterlab/geojson-extension --no-build
  16. jupyter labextension install @jupyterlab/plotly-extension --no-build
  17. jupyter labextension install @jupyter-widgets/jupyterlab-manager --no-build
  18. jupyter labextension install bqplot --no-build
  19. jupyter labextension install jupyter-leaflet --no-build
  20. jupyter lab clean
  21. conda install --override-channels --strict-channel-priority -c conda-forge -c anaconda -y ipywidgets altair matplotlib vega_datasets
  22. jupyter lab build && python -m jupyterlab.browser_check && jupyter lab
  23. conda deactivate
  24. popd