1 Star 0 Fork 0

chenglibo/scikit-learn

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
azure-pipelines.yml 6.07 KB
一键复制 编辑 原始数据 按行查看 历史
Roman Yurchak 提交于 2020-03-30 15:41 . Fix mypy errors (#16726)
# Adapted from https://github.com/pandas-dev/pandas/blob/master/azure-pipelines.yml
schedules:
- cron: "30 2 * * *"
displayName: Run nightly build
branches:
include:
- master
always: true
jobs:
- job: linting
displayName: Linting
pool:
vmImage: ubuntu-18.04
steps:
- bash: echo "##vso[task.prependpath]$CONDA/bin"
displayName: Add conda to PATH
- bash: sudo chown -R $USER $CONDA
displayName: Take ownership of conda installation
- bash: |
conda create --name flake8_env --yes python=3.8
conda activate flake8_env
pip install flake8 mypy==0.770
displayName: Install flake8
- bash: |
if [[ $BUILD_SOURCEVERSIONMESSAGE =~ \[lint\ skip\] ]]; then
# skip linting
echo "Skipping linting"
exit 0
else
conda activate flake8_env
./build_tools/circle/linting.sh
fi
displayName: Run linting
- bash: |
if [[ $BUILD_SOURCEVERSIONMESSAGE =~ \[lint\ skip\] ]]; then
# skip linting
echo "Skipping linting"
exit 0
else
conda activate flake8_env
mypy sklearn/ --ignore-missing-imports
fi
displayName: Run mypy
- bash: |
if [[ $BUILD_SOURCEVERSIONMESSAGE =~ \[scipy-dev\] ]] || \
[[ $BUILD_REASON == "Schedule" ]]; then
echo "##vso[task.setvariable variable=runScipyDev;isOutput=true]true"
else
echo "##vso[task.setvariable variable=runScipyDev;isOutput=true]false"
fi
name: gitCommitMessage
displayName: Determine to run scipy-dev
- template: build_tools/azure/posix.yml
parameters:
name: Linux_Nightly
vmImage: ubuntu-18.04
dependsOn: [linting]
condition: eq(dependencies['linting']['outputs']['gitCommitMessage.runScipyDev'], 'true')
matrix:
pylatest_pip_scipy_dev:
DISTRIB: 'conda-pip-scipy-dev'
PYTHON_VERSION: '*'
CHECK_WARNINGS: 'true'
CHECK_PYTEST_SOFT_DEPENDENCY: 'true'
TEST_DOCSTRINGS: 'true'
# Tests that require large downloads over the networks are skipped in CI.
# Here we make sure, that they are still run on a regular basis.
SKLEARN_SKIP_NETWORK_TESTS: '0'
# Will run all the time regardless of linting outcome.
- template: build_tools/azure/posix.yml
parameters:
name: Linux_Runs
vmImage: ubuntu-18.04
matrix:
pylatest_conda_mkl:
DISTRIB: 'conda'
PYTHON_VERSION: '*'
BLAS: 'mkl'
NUMPY_VERSION: '*'
SCIPY_VERSION: '*'
CYTHON_VERSION: '*'
PILLOW_VERSION: '*'
PYTEST_VERSION: '*'
JOBLIB_VERSION: '*'
THREADPOOLCTL_VERSION: '2.0.0'
COVERAGE: 'true'
- template: build_tools/azure/posix.yml
parameters:
name: Linux
vmImage: ubuntu-18.04
dependsOn: [linting]
condition: and(ne(variables['Build.Reason'], 'Schedule'), succeeded('linting'))
matrix:
# Linux environment to test that scikit-learn can be built against
# versions of numpy, scipy with ATLAS that comes with Ubuntu Bionic 18.04
# i.e. numpy 1.13.3 and scipy 0.19
py36_ubuntu_atlas:
DISTRIB: 'ubuntu'
PYTHON_VERSION: '3.6'
JOBLIB_VERSION: '0.11'
THREADPOOLCTL_VERSION: '2.0.0'
# Linux + Python 3.6 build with OpenBLAS and without SITE_JOBLIB
py36_conda_openblas:
DISTRIB: 'conda'
PYTHON_VERSION: '3.6'
BLAS: 'openblas'
NUMPY_VERSION: '1.13.3'
SCIPY_VERSION: '0.19.1'
PANDAS_VERSION: '*'
CYTHON_VERSION: '*'
# temporary pin pytest due to unknown failure with pytest 5.3
PYTEST_VERSION: '5.2'
PILLOW_VERSION: '4.2.1'
MATPLOTLIB_VERSION: '2.1.1'
SCIKIT_IMAGE_VERSION: '*'
# latest version of joblib available in conda for Python 3.6
JOBLIB_VERSION: '0.13.2'
THREADPOOLCTL_VERSION: '2.0.0'
COVERAGE: 'true'
# Linux environment to test the latest available dependencies and MKL.
# It runs tests requiring lightgbm, pandas and PyAMG.
pylatest_pip_openblas_pandas:
DISTRIB: 'conda-pip-latest'
PYTHON_VERSION: '3.8'
PYTEST_VERSION: '4.6.2'
COVERAGE: 'true'
CHECK_PYTEST_SOFT_DEPENDENCY: 'true'
TEST_DOCSTRINGS: 'true'
CHECK_WARNINGS: 'true'
- template: build_tools/azure/posix-32.yml
parameters:
name: Linux32
vmImage: ubuntu-18.04
dependsOn: [linting]
condition: and(ne(variables['Build.Reason'], 'Schedule'), succeeded('linting'))
matrix:
py36_ubuntu_atlas_32bit:
DISTRIB: 'ubuntu-32'
PYTHON_VERSION: '3.6'
JOBLIB_VERSION: '0.13'
THREADPOOLCTL_VERSION: '2.0.0'
- template: build_tools/azure/posix.yml
parameters:
name: macOS
vmImage: macOS-10.14
dependsOn: [linting]
condition: and(ne(variables['Build.Reason'], 'Schedule'), succeeded('linting'))
matrix:
pylatest_conda_mkl:
DISTRIB: 'conda'
PYTHON_VERSION: '*'
BLAS: 'mkl'
NUMPY_VERSION: '*'
SCIPY_VERSION: '*'
CYTHON_VERSION: '*'
PILLOW_VERSION: '*'
PYTEST_VERSION: '*'
JOBLIB_VERSION: '*'
THREADPOOLCTL_VERSION: '2.0.0'
COVERAGE: 'true'
pylatest_conda_mkl_no_openmp:
DISTRIB: 'conda'
PYTHON_VERSION: '*'
BLAS: 'mkl'
NUMPY_VERSION: '*'
SCIPY_VERSION: '*'
CYTHON_VERSION: '*'
PILLOW_VERSION: '*'
PYTEST_VERSION: '*'
JOBLIB_VERSION: '*'
THREADPOOLCTL_VERSION: '2.0.0'
COVERAGE: 'true'
SKLEARN_TEST_NO_OPENMP: 'true'
SKLEARN_SKIP_OPENMP_TEST: 'true'
- template: build_tools/azure/windows.yml
parameters:
name: Windows
vmImage: vs2017-win2016
dependsOn: [linting]
condition: and(ne(variables['Build.Reason'], 'Schedule'), succeeded('linting'))
matrix:
py37_conda_mkl:
PYTHON_VERSION: '3.7'
CHECK_WARNINGS: 'true'
PYTHON_ARCH: '64'
PYTEST_VERSION: '*'
COVERAGE: 'true'
py36_pip_openblas_32bit:
PYTHON_VERSION: '3.6'
PYTHON_ARCH: '32'
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/chenglibo/scikit-learn.git
git@gitee.com:chenglibo/scikit-learn.git
chenglibo
scikit-learn
scikit-learn
master

搜索帮助