File tree Expand file tree Collapse file tree 1 file changed +36
-22
lines changed Expand file tree Collapse file tree 1 file changed +36
-22
lines changed Original file line number Diff line number Diff line change @@ -8,29 +8,43 @@ trigger:
8
8
9
9
pool :
10
10
vmImage : ubuntu-latest
11
+
11
12
strategy :
12
13
matrix :
13
- Python27 :
14
- python.version : ' 2.7'
15
- Python35 :
16
- python.version : ' 3.5'
17
- Python36 :
18
- python.version : ' 3.6'
19
- Python37 :
20
- python.version : ' 3.7'
14
+ Python310 :
15
+ python.version : ' 3.10'
16
+ Python311 :
17
+ python.version : ' 3.11'
18
+ Python312 :
19
+ python.version : ' 3.12'
21
20
22
21
steps :
23
- - task : UsePythonVersion@0
24
- inputs :
25
- versionSpec : ' $(python.version)'
26
- displayName : ' Use Python $(python.version)'
27
-
28
- - script : |
29
- python -m pip install --upgrade pip
30
- pip install -r requirements.txt
31
- displayName : ' Install dependencies'
32
-
33
- - script : |
34
- pip install pytest pytest-azurepipelines
35
- pytest
36
- displayName : ' pytest'
22
+ - task : UsePythonVersion@0
23
+ inputs :
24
+ versionSpec : ' $(python.version)'
25
+ displayName : ' Use Python $(python.version)'
26
+
27
+ - script : |
28
+ python -m pip install --upgrade pip
29
+ pip install -r requirements.txt
30
+ displayName: 'Install dependencies'
31
+
32
+ - task : ArchiveFiles@2
33
+ displayName : ' Archive files'
34
+ inputs :
35
+ rootFolderOrFile : $(System.DefaultWorkingDirectory)
36
+ includeRootFolder : false
37
+ archiveType : zip
38
+ archiveFile : $(Build.ArtifactStagingDirectory)/$(Build.BuildId)-$(python.version).zip
39
+ replaceExistingArchive : true
40
+
41
+ - task : PublishBuildArtifacts@1
42
+ inputs :
43
+ PathtoPublish : ' $(Build.ArtifactStagingDirectory)'
44
+ ArtifactName : ' drop'
45
+ publishLocation : ' Container'
46
+
47
+ - script : |
48
+ pip install pytest pytest-azurepipelines
49
+ pytest
50
+ displayName: 'pytest'
You can’t perform that action at this time.
0 commit comments