@@ -18,53 +18,47 @@ jobs:
1818 lint :
1919 timeout-minutes : 10
2020 name : lint
21- runs-on : ${{ github.repository == 'stainless-sdks/brand .dev-python' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
22- if : github.event_name == 'push' || github.event.pull_request.head.repo.fork
21+ runs-on : ${{ github.repository == 'stainless-sdks/context .dev-python' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
22+ if : ( github.event_name == 'push' || github.event.pull_request.head.repo.fork) && (github.event_name != 'push' || github.event.head_commit.message != 'codegen metadata')
2323 steps :
2424 - uses : actions/checkout@v6
2525
26- - name : Install Rye
27- run : |
28- curl -sSf https://rye.astral.sh/get | bash
29- echo "$HOME/.rye/shims" >> $GITHUB_PATH
30- env :
31- RYE_VERSION : ' 0.44.0'
32- RYE_INSTALL_OPTION : ' --yes'
26+ - name : Install uv
27+ uses : astral-sh/setup-uv@v5
28+ with :
29+ version : ' 0.10.2'
3330
3431 - name : Install dependencies
35- run : rye sync --all-features
32+ run : uv sync --all-extras
3633
3734 - name : Run lints
3835 run : ./scripts/lint
3936
4037 build :
41- if : github.event_name == 'push' || github.event.pull_request.head.repo.fork
38+ if : ( github.event_name == 'push' || github.event.pull_request.head.repo.fork) && (github.event_name != 'push' || github.event.head_commit.message != 'codegen metadata')
4239 timeout-minutes : 10
4340 name : build
4441 permissions :
4542 contents : read
4643 id-token : write
47- runs-on : ${{ github.repository == 'stainless-sdks/brand .dev-python' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
44+ runs-on : ${{ github.repository == 'stainless-sdks/context .dev-python' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
4845 steps :
4946 - uses : actions/checkout@v6
5047
51- - name : Install Rye
52- run : |
53- curl -sSf https://rye.astral.sh/get | bash
54- echo "$HOME/.rye/shims" >> $GITHUB_PATH
55- env :
56- RYE_VERSION : ' 0.44.0'
57- RYE_INSTALL_OPTION : ' --yes'
48+ - name : Install uv
49+ uses : astral-sh/setup-uv@v5
50+ with :
51+ version : ' 0.10.2'
5852
5953 - name : Install dependencies
60- run : rye sync --all-features
54+ run : uv sync --all-extras
6155
6256 - name : Run build
63- run : rye build
57+ run : uv build
6458
6559 - name : Get GitHub OIDC Token
6660 if : |-
67- github.repository == 'stainless-sdks/brand .dev-python' &&
61+ github.repository == 'stainless-sdks/context .dev-python' &&
6862 !startsWith(github.ref, 'refs/heads/stl/')
6963 id : github-oidc
7064 uses : actions/github-script@v8
7367
7468 - name : Upload tarball
7569 if : |-
76- github.repository == 'stainless-sdks/brand .dev-python' &&
70+ github.repository == 'stainless-sdks/context .dev-python' &&
7771 !startsWith(github.ref, 'refs/heads/stl/')
7872 env :
7973 URL : https://pkg.stainless.com/s
@@ -84,18 +78,15 @@ jobs:
8478 test :
8579 timeout-minutes : 10
8680 name : test
87- runs-on : ${{ github.repository == 'stainless-sdks/brand .dev-python' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
81+ runs-on : ${{ github.repository == 'stainless-sdks/context .dev-python' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
8882 if : github.event_name == 'push' || github.event.pull_request.head.repo.fork
8983 steps :
9084 - uses : actions/checkout@v6
9185
92- - name : Install Rye
93- run : |
94- curl -sSf https://rye.astral.sh/get | bash
95- echo "$HOME/.rye/shims" >> $GITHUB_PATH
96- env :
97- RYE_VERSION : ' 0.44.0'
98- RYE_INSTALL_OPTION : ' --yes'
86+ - name : Install uv
87+ uses : astral-sh/setup-uv@v5
88+ with :
89+ version : ' 0.10.2'
9990
10091 - name : Bootstrap
10192 run : ./scripts/bootstrap
0 commit comments