Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 36 additions & 0 deletions eng/ci/official-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
variables:
- template: ci/variables/cfs.yml@eng

trigger:
batch: true
branches:
include:
- main

# CI only, does not trigger on PRs.
pr: none

resources:
repositories:
- repository: 1es
type: git
name: 1ESPipelineTemplates/1ESPipelineTemplates
ref: refs/tags/release
- repository: eng
type: git
name: engineering
ref: refs/tags/release

extends:
template: v1/1ES.Official.PipelineTemplate.yml@1es
parameters:
pool:
name: 1es-pool-azfunc
image: 1es-windows-2022
os: windows

stages:
- stage: BuildAndSign
dependsOn: []
jobs:
- template: /eng/templates/build.yml@self
42 changes: 42 additions & 0 deletions eng/templates/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
jobs:
- job: Build

templateContext:
outputs:
- output: pipelineArtifact
path: $(build.artifactStagingDirectory)
artifact: drop
sbomBuildDropPath: $(System.DefaultWorkingDirectory)
sbomPackageName: 'Durable Functions Python'

steps:
- task: UsePythonVersion@0
inputs:
versionSpec: '3.7.x'
- script: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install wheel
workingDirectory: $(System.DefaultWorkingDirectory)
displayName: 'Install dependencies'

- script: |
cd azure
flake8 . --count --show-source --statistics
displayName: 'Run lint test with flake8'

- script: |
pip install pytest pytest-azurepipelines
pytest
displayName: 'pytest'
- script: |
python setup.py sdist bdist_wheel
workingDirectory: $(System.DefaultWorkingDirectory)
displayName: 'Building'

- task: CopyFiles@2
displayName: 'Copy publish file to Artifact Staging Directory'
inputs:
SourceFolder: dist
Contents: '**'
TargetFolder: $(Build.ArtifactStagingDirectory)