openai/openai-python

Public

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

CodeCommitsIssuesPull requestsActionsInsightsSecurity
v2.19.0

Branches

Tags

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

Clone

HTTPS

Download ZIP

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

88lines · modeblame

72e0ad60stainless-app[bot]10 months ago1name: CI
2on:
3pull_request:
4branches:
5- main
6- next
7
8jobs:
9detect_breaking_changes:
10runs-on: 'ubuntu-latest'
11name: detect-breaking-changes
12if: github.repository == 'openai/openai-python'
13steps:
14- name: Calculate fetch-depth
15run: |
16echo "FETCH_DEPTH=$(expr ${{ github.event.pull_request.commits }} + 1)" >> $GITHUB_ENV
17
612ad2b5stainless-app[bot]5 months ago18- uses: actions/checkout@v6
72e0ad60stainless-app[bot]10 months ago19with:
20# Ensure we can check out the pull request base in the script below.
21fetch-depth: ${{ env.FETCH_DEPTH }}
22
23- name: Install Rye
24run: |
25curl -sSf https://rye.astral.sh/get | bash
26echo "$HOME/.rye/shims" >> $GITHUB_PATH
27env:
28RYE_VERSION: '0.44.0'
29RYE_INSTALL_OPTION: '--yes'
30- name: Install dependencies
31run: |
32rye sync --all-features
33- name: Detect removed symbols
34run: |
35rye run python scripts/detect-breaking-changes.py "${{ github.event.pull_request.base.sha }}"
36
37- name: Detect breaking changes
38run: |
8be99070Alex Chang5 months ago39test -f ./scripts/detect-breaking-changes || { echo "Missing scripts/detect-breaking-changes"; exit 1; }
74b1e6f9cameron-stainless6 months ago40./scripts/detect-breaking-changes ${{ github.event.pull_request.base.sha }}
41
42agents_sdk:
43runs-on: 'ubuntu-latest'
44name: Detect Agents SDK regressions
45if: github.repository == 'openai/openai-python'
46steps:
47# Setup this sdk
48- uses: actions/checkout@v4
49with:
50path: openai-python
51
52- name: Install Rye
53working-directory: openai-python
54run: |
55curl -sSf https://rye.astral.sh/get | bash
56echo "$HOME/.rye/shims" >> $GITHUB_PATH
57env:
58RYE_VERSION: '0.44.0'
59RYE_INSTALL_OPTION: '--yes'
60
61- name: Install dependencies
62working-directory: openai-python
63run: |
64rye sync --all-features
65
66# Setup the agents lib
67- uses: actions/checkout@v4
68with:
69repository: openai/openai-agents-python
70path: openai-agents-python
71
72- name: Setup uv
73uses: astral-sh/setup-uv@v5
74with:
75enable-cache: true
76
77- name: Link to local SDK
78working-directory: openai-agents-python
79run: uv add ../openai-python
80
81- name: Install dependencies
82working-directory: openai-agents-python
83run: make sync
84
85- name: Run integration type checks
86working-directory: openai-agents-python
87run: make mypy
88