Skip to content
This repository was archived by the owner on Jan 13, 2024. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion _unittests/ut__skl2onnx/test_sklearn_pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,8 +134,8 @@ def test_combine_inputs_floats_ints(self):
model,
"pipeline",
[
("input1", Int64TensorType([None, 1])),
("input2", FloatTensorType([None, 1])),
("input1", Int64TensorType([None, 1])),
],
)
self.assertTrue(
Expand Down
2 changes: 1 addition & 1 deletion _unittests/ut_plotting/test_plotting_onnx.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
"""
@brief test log(time=2s)
@brief test log(time=3s)
"""
import os
import warnings
Expand Down
2 changes: 1 addition & 1 deletion _unittests/ut_testing/test_experimental.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""
@brief test log(time=2s)
@brief test log(time=6s)
"""
import unittest
import numpy
Expand Down
63 changes: 56 additions & 7 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,14 @@ jobs:
displayName: 'Build package inplace'
- script: python -u setup.py unittests -g ".*((LONG)|(SKIP)|(notebooks)).*"
displayName: 'Runs Unit Tests'
- script: python -u setup.py bdist_wheel
displayName: 'Build wheel'
#- script: python -u setup.py build_sphinx
# displayName: 'Builds Documentation'
- script: |
python -m pip install cibuildwheel
export CIBW_BEFORE_BUILD=pip install .
export CIBW_BEFORE_BUILD=pip install pybind11 cython numpy scipy pyquickhelper scikit-learn pandas pandas_streaming onnx
export CIBW_BUILD="cp37-manylinux_x86_64"
# cp38-manylinux_x86_64 cp39-manylinux_x86_64: fails...
python -m cibuildwheel --output-dir dist/wheelhouse --platform linux
displayName: 'Build Package many'
- task: PublishPipelineArtifact@0
inputs:
artifactName: 'wheel-linux-$(python.version)'
Expand Down Expand Up @@ -79,7 +83,8 @@ jobs:
displayName: 'gcc version'
- script: brew install libomp
displayName: 'Install omp'
- script: brew install p7zip
- script: brew upgrade p7zip
continueOnError: true
displayName: 'Install p7zip'
- script: brew install pandoc
displayName: 'Install Pandoc'
Expand Down Expand Up @@ -111,9 +116,53 @@ jobs:
displayName: 'Build package inplace'
- script: python -u setup.py unittests -g ".*((LONG)|(SKIP)|(notebooks)).*"
displayName: 'Runs Unit Tests'
- script: python -u setup.py bdist_wheel
displayName: 'Build wheel'
- script: |
python -m pip install cibuildwheel
export CIBW_BEFORE_BUILD="pip install ."
export CIBW_BEFORE_BUILD="pip install pybind11 cython numpy scipy pyquickhelper scikit-learn pandas pandas_streaming onnx"
export CIBW_BUILD="cp37-macosx_x86_64 cp38-macosx_x86_64"
# cp39-macosx_x86_64 fails due to missing dependencies
python -m cibuildwheel --output-dir dist/wheelhouse
displayName: 'Build Package many'
- task: PublishPipelineArtifact@0
inputs:
artifactName: 'wheel-mac-$(python.version)'
targetPath: 'dist'

- job: 'TestWindows'
pool:
vmImage: 'windows-latest'
strategy:
matrix:
Python38-Windows:
python.version: '3.8'
maxParallel: 3
steps:
- task: UsePythonVersion@0
inputs:
versionSpec: '$(python.version)'
architecture: 'x64'
- script: python -m pip install --upgrade pip setuptools wheel
displayName: 'Install tools'
- script: pip install -r requirements.txt
displayName: 'Install Requirements'
- script: pip install onnxruntime
displayName: 'Install onnxruntime'
- script: python -c "import platform;print(platform.version())"
displayName: 'Platform'
- script: python -u setup.py build_ext --inplace
displayName: 'Build inplace'
- script: python -u setup.py unittests -d 2
displayName: 'Runs Unit Tests'
- script: |
python -m pip install cibuildwheel
set CIBW_BEFORE_BUILD=pip install .
set CIBW_BEFORE_BUILD=pip install pybind11 cython numpy scipy pyquickhelper scikit-learn pandas pandas_streaming onnx
set CIBW_BUILD=cp37-win_amd64 cp38-win_amd64
# cp39-win_amd64 fails, onnx is missing
python -m cibuildwheel --output-dir dist/wheelhouse
displayName: 'Build Package many'
- task: PublishPipelineArtifact@0
inputs:
artifactName: 'wheel-windows-$(python.version)'
targetPath: 'dist'