File tree Expand file tree Collapse file tree 2 files changed +78
-0
lines changed Expand file tree Collapse file tree 2 files changed +78
-0
lines changed Original file line number Diff line number Diff line change
1
+ variables :
2
+ - template : ci/variables/cfs.yml@eng
3
+
4
+ trigger :
5
+ batch : true
6
+ branches :
7
+ include :
8
+ - main
9
+
10
+ # CI only, does not trigger on PRs.
11
+ pr : none
12
+
13
+ resources :
14
+ repositories :
15
+ - repository : 1es
16
+ type : git
17
+ name : 1ESPipelineTemplates/1ESPipelineTemplates
18
+ ref : refs/tags/release
19
+ - repository : eng
20
+ type : git
21
+ name : engineering
22
+ ref : refs/tags/release
23
+
24
+ extends :
25
+ template : v1/1ES.Official.PipelineTemplate.yml@1es
26
+ parameters :
27
+ pool :
28
+ name : 1es-pool-azfunc
29
+ image : 1es-windows-2022
30
+ os : windows
31
+
32
+ stages :
33
+ - stage : BuildAndSign
34
+ dependsOn : []
35
+ jobs :
36
+ - template : /eng/templates/build.yml@self
Original file line number Diff line number Diff line change
1
+ jobs :
2
+ - job : Build
3
+
4
+ templateContext :
5
+ outputs :
6
+ - output : pipelineArtifact
7
+ path : $(build.artifactStagingDirectory)
8
+ artifact : drop
9
+ sbomBuildDropPath : $(System.DefaultWorkingDirectory)
10
+ sbomPackageName : ' Durable Functions Python'
11
+
12
+ steps :
13
+ - task : UsePythonVersion@0
14
+ inputs :
15
+ versionSpec : ' 3.7.x'
16
+ - script : |
17
+ python -m pip install --upgrade pip
18
+ pip install -r requirements.txt
19
+ pip install wheel
20
+ workingDirectory: $(System.DefaultWorkingDirectory)
21
+ displayName: 'Install dependencies'
22
+
23
+ - script : |
24
+ cd azure
25
+ flake8 . --count --show-source --statistics
26
+ displayName: 'Run lint test with flake8'
27
+
28
+ - script : |
29
+ pip install pytest pytest-azurepipelines
30
+ pytest
31
+ displayName: 'pytest'
32
+ - script : |
33
+ python setup.py sdist bdist_wheel
34
+ workingDirectory: $(System.DefaultWorkingDirectory)
35
+ displayName: 'Building'
36
+
37
+ - task : CopyFiles@2
38
+ displayName : ' Copy publish file to Artifact Staging Directory'
39
+ inputs :
40
+ SourceFolder : dist
41
+ Contents : ' **'
42
+ TargetFolder : $(Build.ArtifactStagingDirectory)
You can’t perform that action at this time.
0 commit comments