-
Notifications
You must be signed in to change notification settings - Fork 895
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into chesi/refine-tool-docs
- Loading branch information
Showing
571 changed files
with
48,252 additions
and
22,768 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Validating CODEOWNERS rules …
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,70 +1,26 @@ | ||
name: GitHub Event Handler | ||
name: check_enforcer | ||
|
||
on: | ||
status | ||
|
||
env: | ||
head_sha: ${{ github.sha }} | ||
pull_request: | ||
branches: [ main ] | ||
|
||
jobs: | ||
event-handler: | ||
name: ${{ github.event_name }} | ||
check_enforcer: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- run: git fetch origin main | ||
- run: env | sort >> $GITHUB_OUTPUT | ||
- name: Python Setup - ubuntu-latest - Python Version 3.9 | ||
uses: "./.github/actions/step_create_python_environment" | ||
with: | ||
pythonVersion: 3.9 | ||
- run: pip install -r ${{ github.workspace }}/examples/dev_requirements.txt | ||
- name: Summarize check status | ||
id: summarize_check_status | ||
working-directory: ${{ github.workspace }} | ||
shell: pwsh | ||
run: | | ||
$env:pending_count = 0 | ||
$env:success_count = 0 | ||
function check_conclusion { | ||
param( | ||
[string]$conclusion | ||
) | ||
if ($conclusion -ieq "success") { | ||
$env:success_count = 1 + $env:success_count | ||
Write-Host "Success: " $env:success_count | ||
} else { | ||
$env:pending_count = 1 + $env:pending_count | ||
Write-Host "Pending: " $env:pending_count | ||
} | ||
} | ||
$(gh api /repos/${{ github.repository }}/commits/${{ env.head_sha }}/check-runs) | ConvertFrom-Json | Select-Object -ExpandProperty check_runs | ForEach-Object { | ||
if ($_.name.Contains('promptflow-executor-unit-test')) { | ||
check_conclusion $_.conclusion $_.name | ||
} | ||
if ($_.name.Contains('promptflow-executor-e2e-test')) { | ||
check_conclusion $_.conclusion $_.name | ||
} | ||
if ($_.name.Contains('promptflow-sdk-cli-test')) { | ||
check_conclusion $_.conclusion $_.name | ||
} | ||
} | ||
Write-Host "Total not success test numbers: "$pending_count | ||
Write-Host "Total success test numbers: "$success_count | ||
if ($pending_count -eq 0) { | ||
gh api ` | ||
--method POST ` | ||
-H "Accept: application/vnd.github+json" ` | ||
-H "X-GitHub-Api-Version: 2022-11-28" ` | ||
/repos/${{ github.repository }}/statuses/${{ env.head_sha }} ` | ||
-f state='success' ` | ||
-f target_url='https://github.com/microsoft/promptflow/actions/runs/${{ github.run_id }}' ` | ||
-f description='The build succeeded!' ` | ||
-f context='https://aka.ms/azsdk/checkenforcer' | ||
} else { | ||
gh api ` | ||
--method POST ` | ||
-H "Accept: application/vnd.github+json" ` | ||
-H "X-GitHub-Api-Version: 2022-11-28" ` | ||
/repos/${{ github.repository }}/statuses/${{ env.head_sha }} ` | ||
-f state='pending' ` | ||
-f target_url='https://github.com/microsoft/promptflow/actions/runs/${{ github.run_id }}' ` | ||
-f description='Waiting for all checks to succeed' ` | ||
-f context='https://aka.ms/azsdk/checkenforcer' | ||
} | ||
python ${{ github.workspace }}/scripts/building/check_enforcer.py -t "${{ github.workspace }}" | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
name: examples_flowdag_schema_check | ||
|
||
on: | ||
pull_request: | ||
paths: | ||
- examples/** | ||
- .github/workflows/flowdag_schema_check.yml | ||
- scripts/readme/schema_checker.py | ||
env: | ||
IS_IN_CI_PIPELINE: "true" | ||
jobs: | ||
examples_flowdag_schema_check: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- run: env | sort >> $GITHUB_OUTPUT | ||
- name: Python Setup - ubuntu-latest - Python Version 3.9 | ||
uses: "./.github/actions/step_create_python_environment" | ||
with: | ||
pythonVersion: 3.9 | ||
- run: | | ||
pip install -r ${{ github.workspace }}/examples/dev_requirements.txt | ||
pip install -r ${{ github.workspace }}/examples/requirements.txt | ||
- name: Summarize check status | ||
id: summarize_check_status | ||
working-directory: ${{ github.workspace }} | ||
shell: pwsh | ||
env: | ||
PYTHONPATH: ${{ github.workspace }}/src/promptflow | ||
run: | | ||
cd ${{ github.workspace }}/src | ||
pip install -e promptflow[azure] | ||
pip install -e promptflow-tools | ||
python ${{ github.workspace }}/scripts/readme/schema_checker.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.