Skip to content

Commit

Permalink
Add conda init to CI pipeline scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
wenbingl authored Mar 6, 2025
1 parent 789751a commit 8f30327
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .pipelines/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -474,6 +474,7 @@ stages:
displayName: Create Anaconda environment

- script: |
call conda init
call conda activate pyenv
python -m pip install --upgrade pip
python -m pip install onnxruntime==$(ort.version)
Expand All @@ -482,18 +483,21 @@ stages:
condition: ne(variables['python.version'], '3.12')
- script: |
call conda init
call conda activate pyenv
set CMAKE_ARGS=-DOCOS_ONNXRUNTIME_VERSION=$(ort.version)
python -m pip install .
displayName: Build the wheel
- script: |
call conda init
call conda activate pyenv
python -m pip install $(torch.version)
displayName: Install pytorch
condition: ne(variables['python.version'], '3.12')
- script: |
call conda init
call conda activate pyenv
python -m pytest test
displayName: Run python test
Expand Down

0 comments on commit 8f30327

Please sign in to comment.