forked from Azure/azureml-assets
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1,255 changed files
with
43,043 additions
and
7,403 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
31 changes: 31 additions & 0 deletions
31
.github/ISSUE_TEMPLATE/ACRImageBuildDeprecationFeedback.yml
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,31 @@ | ||
name: ACR Image Build Deprecation Feedback | ||
description: File a feedback report detailing your experience with the deprecation process. | ||
labels: ["ACRImageBuildDeprecation"] | ||
body: | ||
- type: markdown | ||
attributes: | ||
value: | | ||
Thank you for providing feedback on the ACR image build deprecation. | ||
- type: markdown | ||
attributes: | ||
value: | | ||
# Describe your experience | ||
- type: textarea | ||
id: feedback | ||
attributes: | ||
label: Feedback | ||
description: What feedback do you have about the deprecation process? Was the documentation clear and accessible? | ||
validations: | ||
required: true | ||
- type: textarea | ||
id: suggestions | ||
attributes: | ||
label: Suggestions | ||
description: What part of the process do you wish was different? | ||
validations: | ||
required: true | ||
- type: textarea | ||
id: more-info | ||
attributes: | ||
label: Addition information | ||
description: If there is any additional information you'd like to share, please include it below. |
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 |
---|---|---|
@@ -0,0 +1,114 @@ | ||
name: Promptflow CI | ||
on: | ||
# Triggers the Promptflow CI on pull request targeting the main branch | ||
workflow_dispatch: | ||
pull_request: | ||
branches: | ||
- main | ||
paths: | ||
- assets/promptflow/models/** | ||
- .github/workflows/promptflow-ci.yml | ||
- scripts/promptflow-ci/** | ||
pull_request_target: | ||
branches: | ||
- main | ||
paths: | ||
- assets/promptflow/models/** | ||
- .github/workflows/promptflow-ci.yml | ||
- scripts/promptflow-ci/** | ||
types: | ||
- opened | ||
- labeled | ||
- synchronize | ||
- reopened | ||
|
||
env: | ||
PROMPTFLOW_DIR: "assets/promptflow/models" | ||
|
||
permissions: | ||
# Required for OIDC login to Azure | ||
id-token: write | ||
# Required to clone repo | ||
contents: read | ||
|
||
jobs: | ||
check-execution-context: | ||
uses: Azure/azureml-assets/.github/workflows/check-execution-context.yaml@main | ||
|
||
check_spec_yaml: | ||
runs-on: ubuntu-latest | ||
if: fromJSON(needs.check-execution-context.outputs.continue) | ||
needs: check-execution-context | ||
name: Check spec.yaml fields | ||
timeout-minutes: 45 | ||
steps: | ||
- name: Clone branch | ||
uses: Azure/azureml-assets/.github/actions/clone-repo@main | ||
with: | ||
forked-pr: ${{ needs.check-execution-context.outputs.forked_pr }} | ||
fetch-depth: 2 | ||
|
||
- name: Set up Python 3.9 environment | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: "3.9" | ||
|
||
- name: Check spec yaml | ||
run: |- | ||
pip install PyYAML | ||
python scripts/promptflow-ci/check_spec_yaml.py --models_dir ${{ env.PROMPTFLOW_DIR }} | ||
run_promptflow_ci_job: | ||
runs-on: ubuntu-latest | ||
if: fromJSON(needs.check-execution-context.outputs.continue) | ||
needs: check-execution-context | ||
name: Flow tests | ||
environment: Testing | ||
timeout-minutes: 60 | ||
|
||
steps: | ||
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | ||
- name: Clone branch | ||
uses: Azure/azureml-assets/.github/actions/clone-repo@main | ||
with: | ||
forked-pr: ${{ needs.check-execution-context.outputs.forked_pr }} | ||
fetch-depth: 2 | ||
|
||
- name: Use Node.js 18.x | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: "18.x" | ||
|
||
- name: Install cspell | ||
run: npm install -g cspell | ||
|
||
- name: Set up Python 3.9 environment | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: "3.9" | ||
- run: | | ||
python -m pip install --upgrade pip | ||
pip install -r scripts/promptflow-ci/requirement.txt | ||
- name: Azure login | ||
uses: azure/login@v1 | ||
with: | ||
client-id: ${{ secrets.AZURE_CLIENT_ID }} | ||
tenant-id: ${{ secrets.AZURE_TENANT_ID }} | ||
subscription-id: ${{ secrets.AZURE_PROMPT_FLOW_SUBSCRIPTION_ID }} | ||
|
||
- name: Validate prompt flows | ||
run: | | ||
python scripts/promptflow-ci/promptflow_ci.py | ||
- name: Run cspell for typo check | ||
working-directory: ${{ env.PROMPTFLOW_DIR }} | ||
run: |- | ||
cspell lint "**" > cspell_check.log || true | ||
if [ -s cspell_check.log ]; then | ||
echo -e "\e[91mNote: If the detected words are expected, add them into "assets/promptflow/.cspell.json"\e[0m" | ||
echo -e "====================== Summary of cspell errors ======================" | ||
echo -e "\e[31m$(cat cspell_check.log)\e[0m" | ||
exit 1 | ||
fi | ||
rm -rf cspell_check.log |
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
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
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.