Skip to content

Commit d265ad1

Browse files
committed
FLORES
[skip ci]
1 parent 0e4d14e commit d265ad1

File tree

1 file changed

+64
-0
lines changed

1 file changed

+64
-0
lines changed

azure-pipelines.yml

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
# Python package
2+
# Create and test a Python package on multiple Python versions.
3+
# Add steps that analyze code, save the dist with the build record, publish to a PyPI-compatible index, and more:
4+
# https://docs.microsoft.com/azure/devops/pipelines/languages/python
5+
6+
trigger:
7+
- main
8+
9+
pool:
10+
vmImage: ubuntu-latest
11+
12+
strategy:
13+
matrix:
14+
Python310:
15+
python.version: '3.10'
16+
Python311:
17+
python.version: '3.11'
18+
Python312:
19+
python.version: '3.12'
20+
21+
steps:
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+
30+
pip install -r requirements.txt
31+
32+
displayName: 'Install dependencies'
33+
34+
35+
- task: ArchiveFiles@2
36+
displayName: 'Archive files'
37+
inputs:
38+
rootFolderOrFile: $(System.DefaultWorkingDirectory)
39+
includeRootFolder: false
40+
archiveType: zip
41+
archiveFile: $(Build.ArtifactStagingDirectory)/$(Build.BuildId)-$(python.version).zip
42+
replaceExistingArchive: true
43+
44+
45+
46+
- task: PublishBuildArtifacts@1
47+
48+
inputs:
49+
50+
PathtoPublish: '$(Build.ArtifactStagingDirectory)'
51+
52+
ArtifactName: 'drop'
53+
54+
publishLocation: 'Container'
55+
56+
57+
58+
- script: |
59+
60+
pip install pytest pytest-azurepipelines
61+
62+
pytest
63+
64+
displayName: 'pytest'

0 commit comments

Comments
 (0)