Skip to content

Commit

Permalink
Update conda init and activate commands
Browse files Browse the repository at this point in the history
  • Loading branch information
wenbingl authored Mar 6, 2025
1 parent 71db91d commit 1fd3aed
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .pipelines/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -470,34 +470,34 @@ stages:
- powershell: Write-Host "##vso[task.prependpath]$env:CONDA\Scripts"
displayName: Add conda to PATH

- script: conda create --yes --quiet --name pyenv -c conda-forge python=$(python.version) numpy
- script: |
conda create --yes --quiet --name pyenv -c conda-forge python=$(python.version) numpy
displayName: Create Anaconda environment
- script: |
conda init
conda activate pyenv
conda init --all && 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
conda activate pyenv
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
conda init --all
conda activate pyenv
python -m pip install $(torch.version)
displayName: Install pytorch
condition: ne(variables['python.version'], '3.12')
- script: |
conda init
conda init --all
conda activate pyenv
python -m pytest test
displayName: Run python test
Expand Down

0 comments on commit 1fd3aed

Please sign in to comment.