Skip to content

Commit 840e907

Browse files
committed
ci: update
1 parent d2d4fad commit 840e907

1 file changed

Lines changed: 5 additions & 16 deletions

File tree

.github/workflows/e2e-autotest.yml

Lines changed: 5 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -62,28 +62,17 @@ jobs:
6262
- name: Run test plan(s)
6363
shell: pwsh
6464
working-directory: javaext-autotest
65+
env:
66+
AZURE_OPENAI_ENDPOINT: ${{ secrets.AZURE_OPENAI_ENDPOINT }}
67+
AZURE_OPENAI_API_KEY: ${{ secrets.AZURE_OPENAI_API_KEY }}
68+
AZURE_OPENAI_DEPLOYMENT: ${{ secrets.AZURE_OPENAI_DEPLOYMENT }}
6569
run: |
6670
$plan = "${{ inputs.test_plan }}"
6771
if ($plan -and $plan -ne "") {
6872
Write-Host "Running: $plan"
6973
npx autotest run "test-plans/$plan"
7074
} else {
71-
Write-Host "Running all test plans..."
72-
$plans = Get-ChildItem test-plans -Filter "*.yaml" |
73-
Where-Object { $_.Name -ne "java-fresh-import.yaml" } |
74-
Sort-Object Name
75-
$failed = @()
76-
foreach ($p in $plans) {
77-
Write-Host "`n========== $($p.Name) =========="
78-
npx autotest run "test-plans/$($p.Name)"
79-
if ($LASTEXITCODE -ne 0) { $failed += $p.Name }
80-
}
81-
Write-Host "`n========== Summary =========="
82-
Write-Host "Total: $($plans.Count) Failed: $($failed.Count)"
83-
if ($failed.Count -gt 0) {
84-
Write-Host "Failed: $($failed -join ', ')"
85-
exit 1
86-
}
75+
npx autotest run-all test-plans --exclude java-fresh-import
8776
}
8877
8978
- name: Upload test results

0 commit comments

Comments
 (0)