Repository navigation
feat(api): add agent turn items and usage source grouping (#1147) #250
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: Examples smoke test | |
| on: | |
| push: | |
| branches: | |
| - main | |
| permissions: | |
| contents: read | |
| concurrency: | |
| group: examples-smoke-test-main | |
| cancel-in-progress: true | |
| jobs: | |
| examples: | |
| name: Examples / live API smoke test | |
| if: >- | |
| github.repository == 'openai/openai-java' && | |
| github.event.head_commit.message != 'codegen metadata' | |
| environment: CI | |
| runs-on: ${{ vars.SDK_GHA_RUNNER || 'ubuntu-24.04' }} | |
| timeout-minutes: 20 | |
| steps: | |
| - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v6 | |
| with: | |
| persist-credentials: false | |
| - name: Set up Java | |
| uses: actions/setup-java@de7274f081f381c8f8158605e0321c36c376e2e6 # v6.0.1 | |
| with: | |
| distribution: temurin | |
| java-version: | | |
| 8 | |
| 21 | |
| - name: Set up Gradle | |
| uses: gradle/actions/setup-gradle@9c971963bec38e04b3d30dcc455b5382be2fdbfb # v6.3.0 | |
| with: | |
| cache-provider: basic | |
| - name: Run example | |
| env: | |
| OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} | |
| run: ./gradlew :openai-java-example:run |