Skip to content

Commit

Permalink
Using conda CLI to create environment due to CondaEnvrionment@1 is de…
Browse files Browse the repository at this point in the history
…precated (#1078)

* Update linux-conda-CI.yml

Signed-off-by: xiaowuhu <[email protected]>

* Update linux-CI-nightly.yml

Signed-off-by: xiaowuhu <[email protected]>

* Update linux-conda-CI.yml

Signed-off-by: xiaowuhu <[email protected]>

* Update linux-CI-nightly.yml

Signed-off-by: xiaowuhu <[email protected]>

* Update linux-conda-CI.yml

Signed-off-by: xiaowuhu <[email protected]>

* Update linux-conda-CI.yml

Signed-off-by: xiaowuhu <[email protected]>

* Update linux-conda-CI.yml

Signed-off-by: xiaowuhu <[email protected]>

* Update linux-conda-CI.yml

* Update linux-conda-CI.yml

* Update linux-conda-CI.yml

just for testing

* Update linux-conda-CI.yml

* Update linux-conda-CI.yml

* Update linux-conda-CI.yml

* Update linux-conda-CI.yml

* Update linux-conda-CI.yml

* Update linux-conda-CI.yml

* Update linux-conda-CI.yml

* Update linux-conda-CI.yml

* Update linux-CI-nightly.yml

* Update linux-conda-CI.yml

---------

Signed-off-by: xiaowuhu <[email protected]>
  • Loading branch information
xiaowuhu authored Mar 15, 2024
1 parent aacd1a3 commit 36eaa4d
Showing 1 changed file with 11 additions and 17 deletions.
28 changes: 11 additions & 17 deletions .azure-pipelines/linux-conda-CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@ jobs:
lgbm.version: ''
onnxcc.version: '>=1.8.1'
run.example: '0'

Py310-Onnx120-Rt1201-Skl11:
do.bench: '0'
python.version: '3.10'
Expand All @@ -152,6 +153,7 @@ jobs:
lgbm.version: ''
onnxcc.version: '>=1.8.1'
run.example: '0'

Py39-Onnx120-Rt1111-Skl11:
do.bench: '0'
python.version: '3.9'
Expand Down Expand Up @@ -221,15 +223,12 @@ jobs:
maxParallel: 3

steps:
- script: |
sudo install -d -m 0777 /home/vsts/.conda/envs
displayName: Fix Conda permissions
- task: CondaEnvironment@1
- task: UsePythonVersion@0
inputs:
createCustomEnvironment: true
environmentName: 'py$(python.version)'
packageSpecs: 'python=$(python.version)'
versionSpec: '$(python.version)'
addToPath: true
architecture: 'x64'
displayName: 'Use Python $(python.version)'

- script: |
sudo apt-get install -y language-pack-en
Expand All @@ -238,24 +237,19 @@ jobs:
displayName: 'Install packages'
- script: |
test '$(python.version)' == '3.7' && apt-get install protobuf-compiler libprotoc-dev
conda config --set always_yes yes --set changeps1 no
conda install -c conda-forge "numpy$(numpy.version)"
conda install protobuf
pip install "numpy$(numpy.version)"
pip install "scipy$(scipy.version)"
pip install protobuf
python -m pip install --upgrade pip
displayName: 'Install environment'
- script: |
conda install "numpy$(numpy.version)" "scipy$(scipy.version)"
displayName: 'install numpy, scipy'
- script: |
if [ '$(sklearn.version)' == 'git' ]
then
git clone https://github.com/scikit-learn/scikit-learn.git --recursive
python setup.py install
else
conda install -c conda-forge "scikit-learn$(sklearn.version)"
pip install "scikit-learn$(sklearn.version)"
fi
displayName: 'install scikit-learn'
Expand Down

0 comments on commit 36eaa4d

Please sign in to comment.