test `conda install` in the default env in postBuild

pull/690/head
Min RK 2019-05-24 11:04:47 +02:00
rodzic f5999a0b61
commit 9bf2e13832
3 zmienionych plików z 20 dodań i 0 usunięć

Wyświetl plik

@ -0,0 +1,5 @@
#!/bin/bash
# install pytest with conda in the default env (should be $KERNEL_PYTHON_PREFIX)
conda install -yq pytest
# install there with pip (should be the same)
pip install there

Wyświetl plik

@ -0,0 +1,2 @@
#!/bin/sh
pytest -v ./verify.py

Wyświetl plik

@ -0,0 +1,13 @@
#!/usr/bin/env python
import os
import sys
def test_sys_prefix():
# verify that pytest was installed in the notebook env
assert sys.prefix == os.environ["KERNEL_PYTHON_PREFIX"]
def test_there():
# verify that there was installed in the notebook env
import there