openai/openai-python

Public

mirrored from https://github.com/openai/openai-pythonAvailable

CodeCommitsIssuesPull requestsActionsInsightsSecurity
v2.20.0

Branches

Tags

  • No tags available.
0Branches0Tags
Go to file
Add file
Code

Clone

HTTPS

Download ZIP

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

88lines · modecode

1name: CI
2on:
3 pull_request:
4 branches:
5 - main
6 - next
7
8jobs:
9 detect_breaking_changes:
10 runs-on: 'ubuntu-latest'
11 name: detect-breaking-changes
12 if: github.repository == 'openai/openai-python'
13 steps:
14 - name: Calculate fetch-depth
15 run: |
16 echo "FETCH_DEPTH=$(expr ${{ github.event.pull_request.commits }} + 1)" >> $GITHUB_ENV
17
18 - uses: actions/checkout@v6
19 with:
20 # Ensure we can check out the pull request base in the script below.
21 fetch-depth: ${{ env.FETCH_DEPTH }}
22
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'
30 - name: Install dependencies
31 run: |
32 rye sync --all-features
33 - name: Detect removed symbols
34 run: |
35 rye run python scripts/detect-breaking-changes.py "${{ github.event.pull_request.base.sha }}"
36
37 - name: Detect breaking changes
38 run: |
39 test -f ./scripts/detect-breaking-changes || { echo "Missing scripts/detect-breaking-changes"; exit 1; }
40 ./scripts/detect-breaking-changes ${{ github.event.pull_request.base.sha }}
41
42 agents_sdk:
43 runs-on: 'ubuntu-latest'
44 name: Detect Agents SDK regressions
45 if: github.repository == 'openai/openai-python'
46 steps:
47 # Setup this sdk
48 - uses: actions/checkout@v4
49 with:
50 path: openai-python
51
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'
60
61 - name: Install dependencies
62 working-directory: openai-python
63 run: |
64 rye sync --all-features
65
66 # Setup the agents lib
67 - uses: actions/checkout@v4
68 with:
69 repository: openai/openai-agents-python
70 path: openai-agents-python
71
72 - name: Setup uv
73 uses: astral-sh/setup-uv@v5
74 with:
75 enable-cache: true
76
77 - name: Link to local SDK
78 working-directory: openai-agents-python
79 run: uv add ../openai-python
80
81 - name: Install dependencies
82 working-directory: openai-agents-python
83 run: make sync
84
85 - name: Run integration type checks
86 working-directory: openai-agents-python
87 run: make mypy
88
89