55 - ' **'
66 - ' !gh-readonly-queue/**'
77 - ' !integrated/**'
8- - ' !stl-preview-head/**'
9- - ' !stl-preview-base/**'
10- - ' !generated'
11- - ' !codegen/**'
12- - ' codegen/stl/**'
138 pull_request :
14- branches-ignore :
15- - ' stl-preview-head/**'
16- - ' stl-preview-base/**'
179 merge_group :
1810 types :
1911 - checks_requested
3022 lint :
3123 timeout-minutes : 10
3224 name : lint
33- runs-on : ${{ startsWith(github.repository, 'stainless-sdks/') && 'depot- ubuntu-24.04' || 'ubuntu- latest' }}
34- if : ( github.event_name == 'push' || github.event_name == 'merge_group' || github.event.pull_request.head.repo.fork) && (github.event_name != 'push' || github.event.head_commit.message != 'codegen metadata')
25+ runs-on : ubuntu-latest
26+ if : github.event_name == 'push' || github.event_name == 'merge_group' || github.event.pull_request.head.repo.fork
3527 steps :
3628 - uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
3729
@@ -48,12 +40,12 @@ jobs:
4840 run : ./scripts/lint
4941
5042 build :
51- if : ( github.event_name == 'push' || github.event_name == 'merge_group' || github.event.pull_request.head.repo.fork) && (github.event_name != 'push' || github.event.head_commit.message != 'codegen metadata')
43+ if : github.event_name == 'push' || github.event_name == 'merge_group' || github.event.pull_request.head.repo.fork
5244 timeout-minutes : 10
5345 name : build
5446 permissions :
5547 contents : read
56- runs-on : ${{ startsWith(github.repository, 'stainless-sdks/') && 'depot- ubuntu-24.04' || 'ubuntu- latest' }}
48+ runs-on : ubuntu-latest
5749 steps :
5850 - uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
5951 with :
@@ -96,54 +88,10 @@ jobs:
9688 - name : Validate HTTPX2 wheel on Python 3.14
9789 run : python scripts/utils/validate-httpx2-wheel.py
9890
99- - name : Stage tarball for Stainless upload
100- if : |-
101- github.repository == 'stainless-sdks/openai-python' &&
102- !startsWith(github.ref, 'refs/heads/stl/')
103- uses : actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
104- with :
105- name : stainless-package-tarball
106- path : dist/
107- if-no-files-found : error
108- retention-days : 1
109-
110- stainless-upload :
111- name : upload tarball to Stainless
112- needs : build
113- if : github.repository == 'stainless-sdks/openai-python' && !startsWith(github.ref, 'refs/heads/stl/')
114- runs-on : ubuntu-latest
115- permissions :
116- contents : read
117- id-token : write
118-
119- steps :
120- - uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
121- with :
122- persist-credentials : false
123-
124- - name : Download tarball
125- uses : actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
126- with :
127- name : stainless-package-tarball
128- path : dist/
129-
130- - name : Get GitHub OIDC Token
131- id : github-oidc
132- uses : actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8
133- with :
134- script : core.setOutput('github_token', await core.getIDToken());
135-
136- - name : Upload tarball
137- env :
138- URL : https://pkg.stainless.com/s
139- AUTH : ${{ steps.github-oidc.outputs.github_token }}
140- SHA : ${{ github.sha }}
141- run : ./scripts/utils/upload-artifact.sh
142-
14391 test :
14492 timeout-minutes : 15
14593 name : test (Python ${{ matrix.python-version }})
146- runs-on : ${{ startsWith(github.repository, 'stainless-sdks/') && 'depot- ubuntu-24.04' || 'ubuntu- latest' }}
94+ runs-on : ubuntu-latest
14795 if : github.event_name == 'push' || github.event_name == 'merge_group' || github.event.pull_request.head.repo.fork
14896 strategy :
14997 fail-fast : false
@@ -185,7 +133,7 @@ jobs:
185133 test-httpx2 :
186134 timeout-minutes : 20
187135 name : test (HTTPX2)
188- runs-on : ${{ startsWith(github.repository, 'stainless-sdks/') && 'depot- ubuntu-24.04' || 'ubuntu- latest' }}
136+ runs-on : ubuntu-latest
189137 if : github.event_name == 'push' || github.event_name == 'merge_group' || github.event.pull_request.head.repo.fork
190138 steps :
191139 - uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
@@ -223,8 +171,8 @@ jobs:
223171 timeout-minutes : 10
224172 name : examples
225173 environment : ci
226- runs-on : ${{ startsWith(github.repository, 'stainless-sdks/') && 'depot- ubuntu-24.04' || 'ubuntu- latest' }}
227- if : github.repository == 'openai/openai-python' && github.ref != 'refs/heads/release-please--branches--main' && (github.event_name == 'push' || github.event.pull_request.head.repo.fork) && (github.event_name != 'push' || github.event.head_commit.message != 'codegen metadata')
174+ runs-on : ubuntu-latest
175+ if : github.repository == 'openai/openai-python' && github.ref != 'refs/heads/release-please--branches--main' && (github.event_name == 'push' || github.event.pull_request.head.repo.fork)
228176
229177 steps :
230178 - uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
0 commit comments