feat: Add workflow_dispatch event with script parameters and update trace output to GITHUB_STEP_SUMMARY #3032
This file contains hidden or 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
name: azure openai tests | |
permissions: | |
contents: read | |
on: | |
workflow_dispatch: | |
release: | |
types: | |
- published | |
pull_request: | |
paths: | |
- yarn.lock | |
- ".github/workflows/azure.yml" | |
- "packages/core/**/*" | |
- "packages/cli/**/*" | |
- "samples/**/*" | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }}-azure | |
cancel-in-progress: true | |
jobs: | |
tests: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: "recursive" | |
fetch-depth: 0 | |
- uses: pnpm/action-setup@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: "22" | |
cache: pnpm | |
- run: pnpm install --frozen-lockfile | |
- name: compile | |
run: pnpm build:cli | |
- name: poem | |
run: pnpm run:script poem --model azure:gpt-4.1 -tlp 5 --out-trace $GITHUB_STEP_SUMMARY | |
env: | |
AZURE_OPENAI_API_ENDPOINT: ${{ secrets.AZURE_OPENAI_API_ENDPOINT }} | |
AZURE_OPENAI_API_KEY: ${{ secrets.AZURE_OPENAI_API_KEY }} |