File tree Expand file tree Collapse file tree 4 files changed +12
-41
lines changed
ci_build/azure_pipelines/templates Expand file tree Collapse file tree 4 files changed +12
-41
lines changed Original file line number Diff line number Diff line change @@ -20,12 +20,10 @@ stages:
20
20
artifactName : ' ${{ parameters.artifact_name }}'
21
21
downloadPath : $(System.DefaultWorkingDirectory)
22
22
23
- - task : CondaEnvironment@1
23
+ - task : UsePythonVersion@0
24
24
inputs :
25
- createCustomEnvironment : ' true'
26
- environmentName : ' tf2onnx'
27
- packageSpecs : ' python=3.7'
28
- updateConda : ' false'
25
+ versionSpec : ' 3.7'
26
+ architecture : ' x64'
29
27
30
28
- bash : |
31
29
pip install -U coverage
Original file line number Diff line number Diff line change @@ -78,22 +78,10 @@ jobs:
78
78
- bash : env
79
79
displayName : ' Display Environment Variables'
80
80
81
- # TODO: ordinary python is preferred but built-in python3.6 does not have libpython3.6m.so, onnxruntime will fail with
82
- # Error: 'libpython3.6m.so.1.0: cannot open shared object file: No such file or directory'
83
- # so have to use conda here, may switch back to UsePythonVersion when the issue is fixed.
84
- # - task: UsePythonVersion@0
85
- # inputs:
86
- # versionSpec: '$(CI_PYTHON_VERSION)'
87
- # architecture: 'x64'
88
-
89
- # TODO: Conda Environment task is deprecating, move to raw python after issue above is fixed.
90
- # https://github.com/Microsoft/azure-pipelines-tasks/pull/9573
91
- - task : CondaEnvironment@1
81
+ - task : UsePythonVersion@0
92
82
inputs :
93
- createCustomEnvironment : ' true'
94
- environmentName : ' tf2onnx'
95
- packageSpecs : ' python=$(CI_PYTHON_VERSION)'
96
- updateConda : ' false'
83
+ versionSpec : ' $(CI_PYTHON_VERSION)'
84
+ architecture : ' x64'
97
85
98
86
- ${{ if eq(parameters.run_setup, 'True') }} :
99
87
- template : ' setup.yml'
Original file line number Diff line number Diff line change 9
9
- script : sudo install -d -m 0777 /home/vsts/.conda/envs
10
10
displayName : Fix Conda permissions
11
11
12
- - task : CondaEnvironment@1
12
+ - task : UsePythonVersion@0
13
13
inputs :
14
- createCustomEnvironment : true
15
- environmentName : ' py$(python.version)'
16
- packageSpecs : ' python=$(python.version)'
14
+ versionSpec : ' $(python.version)'
15
+ architecture : ' x64'
17
16
18
17
- script : |
19
18
python -m pip install --upgrade pip
@@ -80,11 +79,7 @@ steps:
80
79
- powershell : Write-Host "##vso[task.prependpath]$env:CONDA\Scripts"
81
80
displayName : Add conda to PATH
82
81
83
- - script : conda create --yes --quiet --name py$(python.version) -c conda-forge python=$(python.version) numpy protobuf~=3.20
84
- displayName : Create Anaconda environment
85
-
86
82
- script : |
87
- call activate py$(python.version)
88
83
python -m pip install --upgrade pip numpy
89
84
echo Test numpy installation... && python -c "import numpy"
90
85
pip install onnxconverter-common
@@ -119,7 +114,6 @@ steps:
119
114
displayName: 'Install dependencies'
120
115
121
116
- script : |
122
- call activate py$(python.version)
123
117
pip install -e .
124
118
echo Test onnxruntime installation... && python -c "import onnxruntime"
125
119
pytest tests/keras2onnx_unit_tests --doctest-modules --junitxml=junit/test-results.xml
Original file line number Diff line number Diff line change 9
9
- script : sudo install -d -m 0777 /home/vsts/.conda/envs
10
10
displayName : Fix Conda permissions
11
11
12
- - task : CondaEnvironment@1
12
+ - task : UsePythonVersion@0
13
13
inputs :
14
- createCustomEnvironment : true
15
- environmentName : ' py$(python.version)'
16
- packageSpecs : ' python=$(python.version)'
14
+ versionSpec : ' $(python.version)'
15
+ architecture : ' x64'
17
16
18
17
- script : |
19
18
python -m pip install --upgrade pip
@@ -63,14 +62,7 @@ steps:
63
62
versionSpec : ' $(python.version)'
64
63
architecture : ' x64'
65
64
66
- - powershell : Write-Host "##vso[task.prependpath]$env:CONDA\Scripts"
67
- displayName : Add conda to PATH
68
-
69
- - script : conda create --yes --quiet --name py$(python.version) -c conda-forge python=$(python.version) numpy protobuf~=3.20
70
- displayName : Create Anaconda environment
71
-
72
65
- script : |
73
- call activate py$(python.version)
74
66
python -m pip install --upgrade pip numpy
75
67
echo Test numpy installation... && python -c "import numpy"
76
68
pip install onnxconverter-common
91
83
displayName: 'Install dependencies'
92
84
93
85
- script : |
94
- call activate py$(python.version)
95
86
pip install -e .
96
87
echo Test onnxruntime installation... && python -c "import onnxruntime"
97
88
python -c "import onnxconverter_common"
You can’t perform that action at this time.
0 commit comments