File tree Expand file tree Collapse file tree 4 files changed +29
-52
lines changed Expand file tree Collapse file tree 4 files changed +29
-52
lines changed Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 22 - job : " Build"
33 displayName : ' Build Python SDK'
44
5+ strategy :
6+ matrix :
7+ Python37 :
8+ PYTHON_VERSION : ' 3.7'
9+ Python38 :
10+ PYTHON_VERSION : ' 3.8'
11+ Python39 :
12+ PYTHON_VERSION : ' 3.9'
13+ Python310 :
14+ PYTHON_VERSION : ' 3.10'
15+ Python311 :
16+ PYTHON_VERSION : ' 3.11'
17+ Python312 :
18+ PYTHON_VERSION : ' 3.12'
19+
520 steps :
621 - task : UsePythonVersion@0
722 inputs :
8- versionSpec : " 3.11 "
23+ versionSpec : $(PYTHON_VERSION)
924 - bash : |
1025 python --version
1126 displayName: 'Check python version'
1227 - bash : |
1328 python -m pip install -U pip
1429 python -m pip install build
30+ if [[ $(PYTHON_VERSION) == "3.7" ]]; then
31+ python -m pip install importlib_metadata
32+ fi
1533 python -m build
16- displayName: 'Build Python SDK'
34+ displayName: 'Build Python SDK for $(PYTHON_VERSION)'
35+ - bash : |
36+ pip install pip-audit
37+ pip-audit .
38+ displayName: 'Run vulnerability scan'
39+ condition: ne(variables['PYTHON_VERSION'], '3.7')
Original file line number Diff line number Diff line change 2626 python -m pip install build
2727 python -m build
2828 displayName: 'Build Python SDK'
29+ - bash : |
30+ pip install pip-audit
31+ pip-audit .
32+ displayName: 'Run vulnerability scan'
You can’t perform that action at this time.
0 commit comments