зеркало из https://github.com/microsoft/LightGBM.git
[ci] compatibility hotfix for notebook execution (#2048)
* ci fix * ci fix for Appveyor * actually firx Appveyor
This commit is contained in:
Родитель
74ce2cfe94
Коммит
b020a25d3d
|
@ -53,5 +53,5 @@ test_script:
|
|||
if (!$?) { $host.SetShouldExit(-1) }
|
||||
} # run all examples
|
||||
- cd %APPVEYOR_BUILD_FOLDER%\examples\python-guide\notebooks
|
||||
- conda install -q -y -n test-env ipywidgets notebook
|
||||
- conda install -q -y -n test-env ipywidgets notebook "tornado=5.1.1"
|
||||
- jupyter nbconvert --ExecutePreprocessor.timeout=180 --to notebook --execute --inplace *.ipynb # run all notebooks
|
||||
|
|
|
@ -139,6 +139,6 @@ matplotlib.use\(\"Agg\"\)\
|
|||
sed -i'.bak' 's/graph.render(view=True)/graph.render(view=False)/' plot_example.py
|
||||
for f in *.py; do python $f || exit -1; done # run all examples
|
||||
cd $BUILD_DIRECTORY/examples/python-guide/notebooks
|
||||
conda install -q -y -n $CONDA_ENV ipywidgets notebook
|
||||
conda install -q -y -n $CONDA_ENV ipywidgets notebook "tornado=5.1.1"
|
||||
jupyter nbconvert --ExecutePreprocessor.timeout=180 --to notebook --execute --inplace *.ipynb || exit -1 # run all notebooks
|
||||
fi
|
||||
|
|
|
@ -38,6 +38,6 @@ if ($env:TASK -eq "regular") {
|
|||
python $file ; Check-Output $?
|
||||
} # run all examples
|
||||
cd $env:BUILD_SOURCESDIRECTORY/examples/python-guide/notebooks
|
||||
conda install -q -y -n $env:CONDA_ENV ipywidgets notebook
|
||||
conda install -q -y -n $env:CONDA_ENV ipywidgets notebook "tornado=5.1.1"
|
||||
jupyter nbconvert --ExecutePreprocessor.timeout=180 --to notebook --execute --inplace *.ipynb ; Check-Output $? # run all notebooks
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче