Skip to content

Commit 125b6aa

Browse files
committed
Set up CI with Azure Pipelines
[skip ci]
1 parent 4318bff commit 125b6aa

File tree

1 file changed

+36
-22
lines changed

1 file changed

+36
-22
lines changed

azure-pipelines.yml

Lines changed: 36 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -8,29 +8,43 @@ trigger:
88

99
pool:
1010
vmImage: ubuntu-latest
11+
1112
strategy:
1213
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'
2120

2221
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'

0 commit comments

Comments
 (0)