openai/openai-python

Public

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

CodeCommitsIssuesPull requestsActionsInsightsSecurity
v2.32.0

Branches

Tags

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

Clone

HTTPS

Download ZIP

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

83lines · 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
58184ad5Drew Hintz3 months ago18- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # 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
e507a4ebstainless-app[bot]2 months ago23- name: Set up Rye
24uses: eifinger/setup-rye@c694239a43768373e87d0103d7f547027a23f3c8
25with:
26version: '0.44.0'
27enable-cache: true
72e0ad60stainless-app[bot]10 months ago28- name: Install dependencies
29run: |
30rye sync --all-features
31- name: Detect removed symbols
32run: |
33rye run python scripts/detect-breaking-changes.py "${{ github.event.pull_request.base.sha }}"
34
35- name: Detect breaking changes
36run: |
8be99070Alex Chang5 months ago37test -f ./scripts/detect-breaking-changes || { echo "Missing scripts/detect-breaking-changes"; exit 1; }
74b1e6f9cameron-stainless6 months ago38./scripts/detect-breaking-changes ${{ github.event.pull_request.base.sha }}
39
40agents_sdk:
41runs-on: 'ubuntu-latest'
42name: Detect Agents SDK regressions
43if: github.repository == 'openai/openai-python'
44steps:
45# Setup this sdk
58184ad5Drew Hintz3 months ago46- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
74b1e6f9cameron-stainless6 months ago47with:
48path: openai-python
49
e507a4ebstainless-app[bot]2 months ago50- name: Set up Rye
51uses: eifinger/setup-rye@c694239a43768373e87d0103d7f547027a23f3c8
52with:
53version: '0.44.0'
54enable-cache: true
55working-directory: openai-python
74b1e6f9cameron-stainless6 months ago56
57- name: Install dependencies
58working-directory: openai-python
59run: |
60rye sync --all-features
61
62# Setup the agents lib
58184ad5Drew Hintz3 months ago63- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
74b1e6f9cameron-stainless6 months ago64with:
65repository: openai/openai-agents-python
66path: openai-agents-python
67
68- name: Setup uv
58184ad5Drew Hintz3 months ago69uses: astral-sh/setup-uv@e58605a9b6da7c637471fab8847a5e5a6b8df081 # v5
74b1e6f9cameron-stainless6 months ago70with:
71enable-cache: true
72
73- name: Link to local SDK
74working-directory: openai-agents-python
75run: uv add ../openai-python
76
77- name: Install dependencies
78working-directory: openai-agents-python
79run: make sync
80
81- name: Run integration type checks
82working-directory: openai-agents-python
83run: make mypy