* added scrapbook support

* Added gitpython to environtment.yml file

* added git_repo_path function to utils

* updated notebook

* added test for lightgbm notebook

* included testing of notebooks

* resolve test error

* resolve test error

* added kernel name

* updated kernel name

* trying installing bayesm from cmd

* trying installing bayesm from cmd

* trying installing bayesm from cmd

* excluded notebook test

* excluded notebook test

* added lapack.so link fix

* included notebook tests

* excluded files for notebook test

Co-authored-by: vapaunic <15053814+vapaunic@users.noreply.github.com>
This commit is contained in:
Chenhui Hu 2020-01-31 15:06:29 -05:00 коммит произвёл GitHub
Родитель 6f5bb69dce
Коммит 28ed8856d7
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
5 изменённых файлов: 403 добавлений и 365 удалений

Разница между файлами не показана из-за своего большого размера Загрузить разницу

Просмотреть файл

@ -0,0 +1,2 @@
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.

Просмотреть файл

@ -0,0 +1,11 @@
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
from git import Repo
def git_repo_path():
"""Return the path of the forecasting repo"""
repo = Repo(search_parent_directories=True)
return repo.working_dir

Просмотреть файл

@ -32,20 +32,22 @@ jobs:
ls
uname -ra
echo "Running cleanup ... "
conda env remove -n forecasting_cpu
conda env remove -n forecast_cpu
echo "Cleanup done."
displayName: 'Cleanup existing conda environment'
- bash: |
echo "Running conda env setup ..."
yes | conda env create -n forecasting_cpu -f tools/environment.yml
yes | conda env create -n forecast_cpu -f tools/environment.yml
eval "$(conda shell.bash hook)" && conda activate forecast_cpu
pip install -e forecasting_lib
echo "Conda env installed."
displayName: 'Creating Conda Environment with dependencies'
- bash: |
sudo ln -s /usr/lib/R/modules/lapack.so /usr/lib/libRlapack.so
eval "$(conda shell.bash hook)" && conda activate forecast_cpu
python -m ipykernel install --user --name forecast_cpu
pytest --durations=0 forecasting_lib/tests -m "not notebooks and not gpu and not azureml" --junitxml=junit/test-unitttest.xml
displayName: 'Run Unit tests'

Просмотреть файл

@ -35,4 +35,6 @@ dependencies:
- flake8
- jupytext==1.3.0
- lightgbm==2.3.1
- nteract-scrapbook==0.3.1
- gitpython==3.0.5
# - fire==0.2.1 # for CLI capabilities