chore: import upstream snapshot with attribution
tools_continuous_delivery / Private PyPI non-main branch release (push) Has been skipped
tools_continuous_delivery / Private PyPI main branch release (push) Failing after 2m42s
Publish Promptflow Doc / Build (push) Has been cancelled
Publish Promptflow Doc / Deploy (push) Has been cancelled
Flake8 Lint / flake8 (push) Has been cancelled
Spell check CI / Spell_Check (push) Has been cancelled
tools_continuous_delivery / Private PyPI non-main branch release (push) Has been skipped
tools_continuous_delivery / Private PyPI main branch release (push) Failing after 2m42s
Publish Promptflow Doc / Build (push) Has been cancelled
Publish Promptflow Doc / Deploy (push) Has been cancelled
Flake8 Lint / flake8 (push) Has been cancelled
Spell check CI / Spell_Check (push) Has been cancelled
This commit is contained in:
@@ -0,0 +1,55 @@
|
||||
parameters:
|
||||
- name: promptflowCsPat
|
||||
displayName: "PAT to clone csharp repository"
|
||||
type: string
|
||||
- name: flowProjectRelativePath
|
||||
displayName: "Flow Project Relative Path"
|
||||
type: string
|
||||
|
||||
steps:
|
||||
- task: UseDotNet@2
|
||||
inputs:
|
||||
version: '6.x'
|
||||
- task: UsePythonVersion@0
|
||||
inputs:
|
||||
versionSpec: '3.9.x'
|
||||
architecture: 'x64'
|
||||
|
||||
- task: PowerShell@2
|
||||
displayName: 'Install promptflow cli'
|
||||
inputs:
|
||||
targetType: 'inline'
|
||||
script: |
|
||||
Set-PSDebug -Trace 1
|
||||
pip install -r src/promptflow/dev_requirements.txt
|
||||
pip install src/promptflow-tracing
|
||||
pip install src/promptflow-core[executor-service]
|
||||
pip install src/promptflow-devkit
|
||||
pip install src/promptflow-azure
|
||||
pip install src/promptflow-recording
|
||||
pip freeze
|
||||
|
||||
- task: PowerShell@2
|
||||
displayName: 'Clone csharp repository'
|
||||
inputs:
|
||||
targetType: 'inline'
|
||||
script: |
|
||||
git clone https://$(PROMPTFLOW_CS_PAT)@dev.azure.com/msdata/Vienna/_git/PromptflowCS csharp
|
||||
|
||||
- task: NuGetAuthenticate@1
|
||||
|
||||
- task: DotNetCoreCLI@2
|
||||
inputs:
|
||||
command: 'restore'
|
||||
projects: '$(flowProjectRelativePath)/**/*.csproj'
|
||||
feedsToUse: 'config'
|
||||
nugetConfigPath: '$(flowProjectRelativePath)/nuget.config'
|
||||
displayName: 'dotnet restore'
|
||||
|
||||
- task: DotNetCoreCLI@2
|
||||
inputs:
|
||||
command: 'build'
|
||||
projects: '$(flowProjectRelativePath)/**/*.csproj'
|
||||
feedsToUse: 'config'
|
||||
nugetConfigPath: '$(flowProjectRelativePath)/nuget.config'
|
||||
displayName: 'dotnet build'
|
||||
Reference in New Issue
Block a user