openai/openai-python

Public

mirrored fromhttps://github.com/openai/openai-pythonAvailable

CodeCommitsIssuesPull requestsActionsInsightsSecurity
2bba15e71817a75e9b8517e09cb244bc144b50d0

Branches

Tags

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

Clone

HTTPS

Download ZIP

scripts/detect-breaking-changes

24lines · modecode

1#!/usr/bin/env bash
2
3set -e
4
5cd "$(dirname "$0")/.."
6
7echo "==> Detecting breaking changes"
8
9TEST_PATHS=(
10 tests/api_resources
11 tests/test_client.py
12 tests/test_response.py
13 tests/test_legacy_response.py
14)
15
16for PATHSPEC in "${TEST_PATHS[@]}"; do
17 # Try to check out previous versions of the test files
18 # with the current SDK.
19 git checkout "$1" -- "${PATHSPEC}" 2>/dev/null || true
20done
21
22# Instead of running the tests, use the linter to check if an
23# older test is no longer compatible with the latest SDK.
24PYRIGHT_PROJECT=scripts/pyrightconfig.breaking-changes.json ./scripts/lint