Files
wehub-resource-sync e768098d0e
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
chore: import upstream snapshot with attribution
2026-07-13 13:39:52 +08:00

55 lines
1.8 KiB
YAML

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 }}