File tree 4 files changed +29
-52
lines changed
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 2
2
- job : " Build"
3
3
displayName : ' Build Python SDK'
4
4
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
+
5
20
steps :
6
21
- task : UsePythonVersion@0
7
22
inputs :
8
- versionSpec : " 3.11 "
23
+ versionSpec : $(PYTHON_VERSION)
9
24
- bash : |
10
25
python --version
11
26
displayName: 'Check python version'
12
27
- bash : |
13
28
python -m pip install -U pip
14
29
python -m pip install build
30
+ if [[ $(PYTHON_VERSION) == "3.7" ]]; then
31
+ python -m pip install importlib_metadata
32
+ fi
15
33
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 26
26
python -m pip install build
27
27
python -m build
28
28
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