feat: promote from staging 1de32bc #3238
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: CI | |
| on: | |
| push: | |
| branches: | |
| - '**' | |
| - '!integrated/**' | |
| - '!stl-preview-head/**' | |
| - '!stl-preview-base/**' | |
| - '!generated' | |
| - '!codegen/**' | |
| - 'codegen/stl/**' | |
| pull_request: | |
| branches-ignore: | |
| - 'stl-preview-head/**' | |
| - 'stl-preview-base/**' | |
| jobs: | |
| classify-production-ci: | |
| name: classify production CI | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| checks: read | |
| pull-requests: read | |
| statuses: read | |
| outputs: | |
| run_full: ${{ steps.classify.outputs.run_full }} | |
| reason: ${{ steps.classify.outputs.reason }} | |
| steps: | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| - name: Classify immutable CI surface | |
| id: classify | |
| env: | |
| GH_TOKEN: ${{ github.token }} | |
| run: python3 .github/scripts/classify_production_ci.py --event-path "$GITHUB_EVENT_PATH" | |
| lint: | |
| timeout-minutes: 10 | |
| name: lint | |
| runs-on: ${{ github.repository == 'stainless-sdks/telnyx-python' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }} | |
| needs: classify-production-ci | |
| if: needs.classify-production-ci.outputs.run_full == 'true' | |
| steps: | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@d4b2f3b6ecc6e67c4457f6d3e41ec42d3d0fcb86 # v5.4.2 | |
| with: | |
| version: '0.10.2' | |
| - name: Install dependencies | |
| run: uv sync --all-extras | |
| - name: Run lints | |
| run: ./scripts/lint | |
| - name: Validate release gate policy | |
| run: | | |
| python3 .github/scripts/test_copy_pyproject_version.py -v | |
| python3 .github/scripts/test_release_pr_auto_merge.py -v | |
| python3 .github/scripts/test_release_pr_ci_gate.py -v | |
| python3 .github/scripts/test_classify_production_ci.py -v | |
| python3 .github/scripts/test_validate_next_provenance.py -v | |
| python3 .github/scripts/test_verify_pypi_release.py -v | |
| build: | |
| needs: classify-production-ci | |
| if: needs.classify-production-ci.outputs.run_full == 'true' | |
| timeout-minutes: 10 | |
| name: build | |
| permissions: | |
| contents: read | |
| id-token: write | |
| runs-on: ${{ github.repository == 'stainless-sdks/telnyx-python' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }} | |
| steps: | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@d4b2f3b6ecc6e67c4457f6d3e41ec42d3d0fcb86 # v5.4.2 | |
| with: | |
| version: '0.10.2' | |
| - name: Install dependencies | |
| run: uv sync --all-extras | |
| - name: Run build | |
| run: uv build | |
| - name: Get GitHub OIDC Token | |
| if: |- | |
| github.repository == 'stainless-sdks/telnyx-python' && | |
| !startsWith(github.ref, 'refs/heads/stl/') | |
| id: github-oidc | |
| uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0 | |
| with: | |
| script: core.setOutput('github_token', await core.getIDToken()); | |
| - name: Upload tarball | |
| if: |- | |
| github.repository == 'stainless-sdks/telnyx-python' && | |
| !startsWith(github.ref, 'refs/heads/stl/') | |
| env: | |
| URL: https://pkg.stainless.com/s | |
| AUTH: ${{ steps.github-oidc.outputs.github_token }} | |
| SHA: ${{ github.sha }} | |
| run: ./scripts/utils/upload-artifact.sh | |
| test: | |
| timeout-minutes: 10 | |
| name: test | |
| runs-on: ${{ github.repository == 'stainless-sdks/telnyx-python' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }} | |
| needs: classify-production-ci | |
| if: needs.classify-production-ci.outputs.run_full == 'true' | |
| steps: | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@d4b2f3b6ecc6e67c4457f6d3e41ec42d3d0fcb86 # v5.4.2 | |
| with: | |
| version: '0.10.2' | |
| - name: Bootstrap | |
| run: ./scripts/bootstrap | |
| - name: Run tests | |
| run: ./scripts/test |