Skip to content

Commit 2936d2f

Browse files
mcgrew-oaicodex
andcommitted
Pin setup-rye in GitHub workflows
(cherry picked from commit 0bf10b3) Co-authored-by: Codex <noreply@openai.com>
1 parent 750354e commit 2936d2f

File tree

4 files changed

+41
-58
lines changed

4 files changed

+41
-58
lines changed

.github/workflows/ci.yml

Lines changed: 20 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,11 @@ jobs:
2323
steps:
2424
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # 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: Set up Rye
27+
uses: eifinger/setup-rye@c694239a43768373e87d0103d7f547027a23f3c8
28+
with:
29+
version: '0.44.0'
30+
enable-cache: true
3331

3432
- name: Install dependencies
3533
run: rye sync --all-features
@@ -48,13 +46,11 @@ jobs:
4846
steps:
4947
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
5048

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'
49+
- name: Set up Rye
50+
uses: eifinger/setup-rye@c694239a43768373e87d0103d7f547027a23f3c8
51+
with:
52+
version: '0.44.0'
53+
enable-cache: true
5854

5955
- name: Install dependencies
6056
run: rye sync --all-features
@@ -89,13 +85,11 @@ jobs:
8985
steps:
9086
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
9187

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'
88+
- name: Set up Rye
89+
uses: eifinger/setup-rye@c694239a43768373e87d0103d7f547027a23f3c8
90+
with:
91+
version: '0.44.0'
92+
enable-cache: true
9993

10094
- name: Bootstrap
10195
run: ./scripts/bootstrap
@@ -112,13 +106,11 @@ jobs:
112106
steps:
113107
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
114108

115-
- name: Install Rye
116-
run: |
117-
curl -sSf https://rye.astral.sh/get | bash
118-
echo "$HOME/.rye/shims" >> $GITHUB_PATH
119-
env:
120-
RYE_VERSION: '0.44.0'
121-
RYE_INSTALL_OPTION: '--yes'
109+
- name: Set up Rye
110+
uses: eifinger/setup-rye@c694239a43768373e87d0103d7f547027a23f3c8
111+
with:
112+
version: '0.44.0'
113+
enable-cache: true
122114
- name: Install dependencies
123115
run: |
124116
rye sync --all-features

.github/workflows/create-releases.yml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,12 @@ jobs:
2222
repo: ${{ github.event.repository.full_name }}
2323
stainless-api-key: ${{ secrets.STAINLESS_API_KEY }}
2424

25-
- name: Install Rye
25+
- name: Set up Rye
2626
if: ${{ steps.release.outputs.releases_created }}
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'
27+
uses: eifinger/setup-rye@c694239a43768373e87d0103d7f547027a23f3c8
28+
with:
29+
version: '0.44.0'
30+
enable-cache: true
3331

3432
- name: Publish to PyPI
3533
if: ${{ steps.release.outputs.releases_created }}

.github/workflows/detect-breaking-changes.yml

Lines changed: 11 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,11 @@ jobs:
2020
# Ensure we can check out the pull request base in the script below.
2121
fetch-depth: ${{ env.FETCH_DEPTH }}
2222

23-
- name: Install Rye
24-
run: |
25-
curl -sSf https://rye.astral.sh/get | bash
26-
echo "$HOME/.rye/shims" >> $GITHUB_PATH
27-
env:
28-
RYE_VERSION: '0.44.0'
29-
RYE_INSTALL_OPTION: '--yes'
23+
- name: Set up Rye
24+
uses: eifinger/setup-rye@c694239a43768373e87d0103d7f547027a23f3c8
25+
with:
26+
version: '0.44.0'
27+
enable-cache: true
3028
- name: Install dependencies
3129
run: |
3230
rye sync --all-features
@@ -49,14 +47,12 @@ jobs:
4947
with:
5048
path: openai-python
5149

52-
- name: Install Rye
53-
working-directory: openai-python
54-
run: |
55-
curl -sSf https://rye.astral.sh/get | bash
56-
echo "$HOME/.rye/shims" >> $GITHUB_PATH
57-
env:
58-
RYE_VERSION: '0.44.0'
59-
RYE_INSTALL_OPTION: '--yes'
50+
- name: Set up Rye
51+
uses: eifinger/setup-rye@c694239a43768373e87d0103d7f547027a23f3c8
52+
with:
53+
version: '0.44.0'
54+
enable-cache: true
55+
working-directory: openai-python
6056

6157
- name: Install dependencies
6258
working-directory: openai-python
@@ -85,4 +81,3 @@ jobs:
8581
- name: Run integration type checks
8682
working-directory: openai-agents-python
8783
run: make mypy
88-

.github/workflows/publish-pypi.yml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,11 @@ jobs:
1313
steps:
1414
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
1515

16-
- name: Install Rye
17-
run: |
18-
curl -sSf https://rye.astral.sh/get | bash
19-
echo "$HOME/.rye/shims" >> $GITHUB_PATH
20-
env:
21-
RYE_VERSION: '0.44.0'
22-
RYE_INSTALL_OPTION: '--yes'
16+
- name: Set up Rye
17+
uses: eifinger/setup-rye@c694239a43768373e87d0103d7f547027a23f3c8
18+
with:
19+
version: '0.44.0'
20+
enable-cache: true
2321

2422
- name: Publish to PyPI
2523
run: |

0 commit comments

Comments
 (0)