openai/openai-python

Public

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

CodeCommitsIssuesPull requestsActionsInsightsSecurity
v1.107.3

Branches

Tags

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

Clone

HTTPS

Download ZIP

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

42lines · 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
18- uses: actions/checkout@v4
19with:
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: |
39# Try to check out previous versions of the breaking change detection script. This ensures that
40# we still detect breaking changes when entire files and their tests are removed.
41git 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 }}