feat(evals): bump braintrust to 3.x; first-party BraintrustSpanProcessor OTEL sink #3582
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: Build SDKs for pull request | |
| on: | |
| pull_request: | |
| types: | |
| - opened | |
| - synchronize | |
| - reopened | |
| - closed | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.event.pull_request.number }} | |
| cancel-in-progress: true | |
| env: | |
| STAINLESS_ORG: ${{ vars.STAINLESS_ORG }} | |
| STAINLESS_PROJECT: ${{ vars.STAINLESS_PROJECT }} | |
| OAS_PATH: packages/server-v3/openapi.v3.yaml | |
| jobs: | |
| preview: | |
| # Fork PRs don't receive repo vars/secrets, so the Stainless action can only fail there | |
| if: github.event.action != 'closed' && github.event.pull_request.head.repo.full_name == github.repository | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| pull-requests: write | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1 | |
| with: | |
| fetch-depth: 2 | |
| - name: Run preview builds | |
| uses: stainless-api/upload-openapi-spec-action/preview@fd70a2b6f380b00cad97b74ab14ab74918f96a65 # v1.13.3 | |
| with: | |
| stainless_api_key: ${{ secrets.STAINLESS_API_KEY }} | |
| org: ${{ env.STAINLESS_ORG }} | |
| project: ${{ env.STAINLESS_PROJECT }} | |
| oas_path: ${{ env.OAS_PATH }} | |
| config_path: stainless.yml | |
| merge: | |
| if: github.event.action == 'closed' && github.event.pull_request.merged == true && github.event.pull_request.base.ref == 'main' && github.event.pull_request.head.repo.full_name == github.repository | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| pull-requests: write | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1 | |
| with: | |
| fetch-depth: 2 | |
| - name: Run merge build | |
| uses: stainless-api/upload-openapi-spec-action/merge@fd70a2b6f380b00cad97b74ab14ab74918f96a65 # v1.13.3 | |
| with: | |
| stainless_api_key: ${{ secrets.STAINLESS_API_KEY }} | |
| org: ${{ env.STAINLESS_ORG }} | |
| project: ${{ env.STAINLESS_PROJECT }} | |
| oas_path: ${{ env.OAS_PATH }} | |
| config_path: stainless.yml |