Skip to content

Commit

Permalink
Remove redundant conda init commands
Browse files Browse the repository at this point in the history
  • Loading branch information
wenbingl authored Mar 6, 2025
1 parent 1fd3aed commit 85c6f6e
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions .pipelines/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -475,30 +475,27 @@ stages:
displayName: Create Anaconda environment
- script: |
conda init --all && call conda activate pyenv
call conda activate pyenv
python -m pip install --upgrade pip
python -m pip install onnxruntime==$(ort.version)
python -m pip install -r requirements-dev.txt
displayName: Install requirements{-dev}.txt and cmake python modules
condition: ne(variables['python.version'], '3.12')
- script: |
conda init --all
call conda activate pyenv
set CMAKE_ARGS=-DOCOS_ONNXRUNTIME_VERSION=$(ort.version)
python -m pip install .
displayName: Build the wheel
- script: |
conda init --all
conda activate pyenv
call conda activate pyenv
python -m pip install $(torch.version)
displayName: Install pytorch
condition: ne(variables['python.version'], '3.12')
- script: |
conda init --all
conda activate pyenv
call conda activate pyenv
python -m pytest test
displayName: Run python test
condition: ne(variables['python.version'], '3.12')
Expand Down

0 comments on commit 85c6f6e

Please sign in to comment.