/
githubmirror
/
scikit-learn
Обзор
Документация
Войти
/
githubmirror
/
scikit-learn
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
build_tools/github/test_docs.sh
19 строк
808 B
Loïc Estève
CI Clean-up after Azure -> GHA move (#33403)
02 мар 2026, 16:43
Не верифицирован
02 мар 2026, 16:43
c492f2f
Код
Авторство
О чём код?
#!/bin/bash set -ex source build_tools/shared.sh activate_environment scipy_doctest_installed=$(python -c 'import scipy_doctest' && echo "True" || echo "False") if [[ "$scipy_doctest_installed" == "True" ]]; then doc_rst_files=$(find $PWD/doc -name '*.rst' | sort) # Changing dir, as we do in build_tools/github/test_script.sh, avoids an # error when importing sklearn. Not sure why this happens ... I am going to # wild guess that it has something to do with the bespoke way we set up # conda with putting conda in the PATH and source activate, rather than # source <conda_root>/etc/profile.d/conda.sh + conda activate. cd $TEST_DIR python -m pytest --doctest-modules --doctest-only-doctests=true --pyargs sklearn python -m pytest --doctest-modules $doc_rst_files fi