Skip to content

Commit

Permalink
Merge branch 'main' into fgff
Browse files Browse the repository at this point in the history
  • Loading branch information
wenbingl authored Mar 7, 2025
2 parents 91bd4c8 + d50723a commit 8664526
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 26 deletions.
46 changes: 21 additions & 25 deletions .pipelines/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -445,59 +445,54 @@ stages:

strategy:
matrix:
py312-1201:
python.version: '3.12'
torch.version: 'torch torchvision torchaudio'
ort.version: '1.20.1'
py312-1192:
python.version: '3.12'
torch.version: 'torch torchvision torchaudio'
ort.version: '1.19.2'
py312-1181:
python.version: '3.12'
py311-1181:
python.version: '3.11'
torch.version: 'torch torchvision torchaudio'
ort.version: '1.18.1'
py311-1171:
python.version: '3.11'
py310-1171:
python.version: '3.10'
torch.version: 'torch torchvision torchaudio'
ort.version: '1.17.1'
py310-1163:
python.version: '3.10'
torch.version: 'torch torchvision torchaudio'
ort.version: '1.16.3'
py39-1151:
python.version: '3.9'
torch.version: 'torch==1.13.1 torchvision==0.14.1 torchaudio==0.13.1 --index-url https://download.pytorch.org/whl/cpu'
ort.version: '1.15.1'

steps:
- 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
displayName: Create Anaconda environment
- task: UsePythonVersion@0
inputs:
versionSpec: $(python.version)
disableDownloadFromRegistry: true
addToPath: true
architecture: 'x64'
displayName: Use ADO python task

- script: |
call 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: |
call activate pyenv
set CMAKE_ARGS=-DOCOS_ONNXRUNTIME_VERSION=$(ort.version)
python -m pip install .
python -m pip install -v .
displayName: Build the wheel
- script: |
call activate pyenv
python -m pip install $(torch.version)
displayName: Install pytorch
condition: ne(variables['python.version'], '3.12')
- script: |
call activate pyenv
pytest test
cd test && python -m pytest .
displayName: Run python test
condition: ne(variables['python.version'], '3.12')
#################
# Windows PyDebug
Expand All @@ -509,7 +504,7 @@ stages:
steps:
- task: UsePythonVersion@0
inputs:
versionSpec: '3.x'
versionSpec: '3.12'
disableDownloadFromRegistry: true
addToPath: true
architecture: 'x64'
Expand All @@ -518,10 +513,11 @@ stages:
- script: |
python -m pip install --upgrade setuptools pip
python -m pip install "numpy < 2.0.0"
set OCOS_NO_OPENCV=1
set OCOS_SCB_DEBUG=1
python -m pip install -v -e .
displayName: Build onnxruntime-extensions in editable mode.
env:
OCOS_NO_OPENCV: 1
OCOS_SCB_DEBUG: 1
- script: |
python -m pip install -r requirements-dev.txt
Expand Down
2 changes: 1 addition & 1 deletion .pipelines/ci_optional.yml
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ stages:
steps:
- task: UsePythonVersion@0
inputs:
versionSpec: '3.x'
versionSpec: '3.12'
disableDownloadFromRegistry: true
addToPath: true
architecture: 'x64'
Expand Down

0 comments on commit 8664526

Please sign in to comment.