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

This commit is contained in:
wehub-resource-sync
2026-07-13 13:39:52 +08:00
commit e768098d0e
4004 changed files with 2804145 additions and 0 deletions
@@ -0,0 +1,27 @@
name: step_create_conda_environment
inputs:
condaEnvironmentFilePath:
required: false
default: "scripts/building/release-env.yml"
type: string
pythonVersion:
required: false
default: "3.9"
type: string
runs:
using: composite
steps:
- name: Setup Miniconda
uses: conda-incubator/setup-miniconda@v2
with:
miniconda-version: "latest"
activate-environment: release-env
environment-file: ${{ inputs.condaEnvironmentFilePath }}
python-version: ${{ inputs.pythonVersion }}
auto-activate-base: false
auto-update-conda: true
- run: |
conda info
conda list
python --version
shell: bash -el {0}
@@ -0,0 +1,25 @@
name: step_create_python_environment
inputs:
pipFilePath:
required: false
default: "src/promptflow/dev_requirements.txt"
type: string
pythonVersion:
required: false
default: "3.9"
type: string
runs:
using: composite
steps:
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ inputs.pythonVersion }}
- uses: snok/install-poetry@v1
with:
version: 1.8.5
- run: |
python -m pip install --upgrade pip
pip install -r ${{ inputs.pipFilePath }}
pip freeze
shell: pwsh
@@ -0,0 +1,19 @@
name: step_generate_configs
inputs:
targetFolder:
required: false
default: "."
type: string
runs:
using: composite
steps:
- name: Generate the connections config file
working-directory: ${{ github.workspace }}
shell: pwsh
run: |
pip list
pip install azure-identity
pip install azure-keyvault
echo "Generating connection config file..."
python ./scripts/building/generate_connection_config.py `
--target_folder ${{ inputs.targetFolder }}
@@ -0,0 +1,11 @@
name: step_merge_main
runs:
using: composite
steps:
- name: Merge main to current branch
working-directory: ${{ github.workspace }}
shell: pwsh
run: |
git config --global user.name 'prompt flow fundamental'
git config --global user.email 'aml-pt-eng@microsoft.com'
git pull --no-ff origin main
@@ -0,0 +1,55 @@
name: step_publish_test_results
inputs:
testActionFileName:
required: required
type: string
testResultTitle:
required: false
default: "Test Result"
type: string
osVersion:
required: false
default: "ubuntu-latest"
type: string
pythonVersion:
required: false
default: "3.9"
type: string
coverageThreshold:
required: false
default: "0.3"
type: string
context:
description: 'The context of the status'
required: false
default: 'test/sdk_cli'
runs:
using: composite
steps:
- name: Download Artifacts
uses: actions/download-artifact@v3
with:
path: artifacts
- name: Display and Set Environment Variables
run: env | sort >> $GITHUB_OUTPUT
shell: bash -el {0}
id: display_env
- name: Publish Test Results
uses: EnricoMi/publish-unit-test-result-action@v2
with:
check_name: "${{ inputs.testResultTitle }} [${{ steps.display_env.outputs.GITHUB_HEAD_REF }}](https://github.com/microsoft/promptflow/actions/workflows/${{ inputs.testActionFileName }}?query=branch:${{ steps.display_env.outputs.GITHUB_HEAD_REF }}++)"
comment_title: "${{ inputs.testResultTitle }} [${{ steps.display_env.outputs.GITHUB_HEAD_REF }}](https://github.com/microsoft/promptflow/actions/workflows/${{ inputs.testActionFileName }}?query=branch:${{ steps.display_env.outputs.GITHUB_HEAD_REF }}++)"
files: "artifacts/**/test-*.xml"
- name: Code Coverage Summary
if: ${{ inputs.coverageThreshold != 0 }}
uses: irongut/CodeCoverageSummary@v1.3.0
with:
filename: "artifacts/Test Results (Python ${{ inputs.pythonVersion }}) (OS ${{ inputs.osVersion }})/coverage.xml"
badge: true
fail_below_min: true
format: markdown
hide_branch_rate: false
hide_complexity: true
indicators: true
output: both
thresholds: '${{ inputs.coverageThreshold }} 80'
+54
View File
@@ -0,0 +1,54 @@
name: step_sdk_setup
inputs:
scriptPath:
required: false
type: string
setupType:
required: false
default: promptflow_with_extra
type: string
runs:
using: composite
steps:
- name: Clean up installed packages
working-directory: ${{ inputs.scriptPath }}
continue-on-error: true
shell: pwsh
run: |
pip uninstall -y promptflow promptflow-sdk promptflow-tools
- name: 'Build and install: promptflow-sdk'
if: inputs.setupType == 'promptflow_dev'
shell: pwsh
run: |
Set-PSDebug -Trace 1
pip install -r ./dev_requirements.txt
python ./setup.py bdist_wheel
$package = Get-ChildItem ./dist | ? { $_.Name.Contains('.whl')}
pip install $package.FullName
echo "########### pip freeze ###########"
pip freeze
working-directory: ${{ inputs.scriptPath }}
- name: 'Build and install: promptflow-tools'
shell: pwsh
run: |
Set-PSDebug -Trace 2
python ./setup.py bdist_wheel
$package = Get-ChildItem ./dist | ? { $_.Name.Contains('.whl')}
pip install $package.FullName
echo "########### pip freeze (After) ###########"
pip freeze
working-directory: src/promptflow-tools
- name: 'Build and install: promptflow with extra'
if: inputs.setupType == 'promptflow_with_extra'
shell: pwsh
run: |
Set-PSDebug -Trace 1
pip install -r ./dev_requirements.txt
echo "########### pip list (Before) ###########"
pip list
python ./setup.py bdist_wheel
$package = Get-ChildItem ./dist | ? { $_.Name.Contains('.whl')}
pip install --force-reinstall $($package.FullName + "[azure,executable,azureml-serving,executor-service]")
echo "########### pip freeze (After) ###########"
pip freeze
working-directory: ${{ inputs.scriptPath }}