Live smoke #31
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: Live smoke | |
| on: | |
| schedule: | |
| - cron: "17 3 * * *" | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| concurrency: | |
| group: live-smoke | |
| cancel-in-progress: false | |
| jobs: | |
| smoke: | |
| name: Bounded trusted CometAPI smoke | |
| if: >- | |
| vars.LIVE_SMOKE_ENABLED == 'true' && | |
| github.ref == 'refs/heads/main' | |
| runs-on: ubuntu-latest | |
| # Required repository configuration: protect this environment without required | |
| # reviewers, add COMETAPI_KEY, and optionally set the model variable. | |
| environment: live-smoke | |
| timeout-minutes: 5 | |
| steps: | |
| - name: Check out the repository | |
| uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| with: | |
| persist-credentials: false | |
| - name: Set up Node.js 24 | |
| uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0 | |
| with: | |
| node-version: 24.x | |
| cache: npm | |
| - name: Install locked dependencies | |
| run: npm ci | |
| - name: Build the package | |
| run: npm run build | |
| - name: Run the bounded live smoke | |
| env: | |
| COMETAPI_KEY: ${{ secrets.COMETAPI_KEY }} | |
| COMETAPI_LIVE_SMOKE: "1" | |
| COMETAPI_SMOKE_MODEL: ${{ vars.COMETAPI_SMOKE_MODEL || 'gpt-5.6-sol' }} | |
| COMETAPI_LIVE_REQUEST_LIMIT: "3" | |
| COMETAPI_LIVE_MAX_OUTPUT_TOKENS: "16" | |
| COMETAPI_LIVE_REQUEST_TIMEOUT_MS: "60000" | |
| COMETAPI_LIVE_CONCURRENCY: "1" | |
| # The test performs exactly three sequential requests (Models, Chat | |
| # non-streaming, Responses streaming), stops on the first failure, and | |
| # never prints the credential. | |
| run: npm run test:live |