Skip to content

Commit 74b1e6f

Browse files
cameron-stainlessCameron McAteer
authored andcommitted
chore(ci): add CI job to detect breaking changes with the Agents SDK (#1436)
* chore: Add CI job to detect breaking changes with agents lib * chore: Make changes based on PR comments * chore: Add newline after each new step --------- Co-authored-by: Cameron McAteer <cameron@Camerons-MBP.localdomain>
1 parent 3c016c6 commit 74b1e6f

File tree

1 file changed

+49
-1
lines changed

1 file changed

+49
-1
lines changed

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

Lines changed: 49 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,4 +39,52 @@ jobs:
3939
# Try to check out previous versions of the breaking change detection script. This ensures that
4040
# we still detect breaking changes when entire files and their tests are removed.
4141
git checkout "${{ github.event.pull_request.base.sha }}" -- ./scripts/detect-breaking-changes 2>/dev/null || true
42-
./scripts/detect-breaking-changes ${{ github.event.pull_request.base.sha }}
42+
./scripts/detect-breaking-changes ${{ github.event.pull_request.base.sha }}
43+
44+
agents_sdk:
45+
runs-on: 'ubuntu-latest'
46+
name: Detect Agents SDK regressions
47+
if: github.repository == 'openai/openai-python'
48+
steps:
49+
# Setup this sdk
50+
- uses: actions/checkout@v4
51+
with:
52+
path: openai-python
53+
54+
- name: Install Rye
55+
working-directory: openai-python
56+
run: |
57+
curl -sSf https://rye.astral.sh/get | bash
58+
echo "$HOME/.rye/shims" >> $GITHUB_PATH
59+
env:
60+
RYE_VERSION: '0.44.0'
61+
RYE_INSTALL_OPTION: '--yes'
62+
63+
- name: Install dependencies
64+
working-directory: openai-python
65+
run: |
66+
rye sync --all-features
67+
68+
# Setup the agents lib
69+
- uses: actions/checkout@v4
70+
with:
71+
repository: openai/openai-agents-python
72+
path: openai-agents-python
73+
74+
- name: Setup uv
75+
uses: astral-sh/setup-uv@v5
76+
with:
77+
enable-cache: true
78+
79+
- name: Link to local SDK
80+
working-directory: openai-agents-python
81+
run: uv add ../openai-python
82+
83+
- name: Install dependencies
84+
working-directory: openai-agents-python
85+
run: make sync
86+
87+
- name: Run integration type checks
88+
working-directory: openai-agents-python
89+
run: make mypy
90+

0 commit comments

Comments
 (0)