FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
openai-python/scripts/detect-breaking-changes at main · primal100/openai-python · GitHub
primal100
/
openai-python
Public
forked from
openai/openai-python
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
openai-python
/
scripts
/
detect-breaking-changes
Copy path
More file actions
More file actions
Latest commit
History
History
History
executable file
·
24 lines (18 loc) · 533 Bytes
Breadcrumbs
openai-python
/
scripts
/
detect-breaking-changes
Copy path
File metadata and controls
executable file
·
24 lines (18 loc) · 533 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!
/usr/bin/env bash
set
-e
cd
"
$(
dirname
"
$0
"
)
/..
"
echo
"
==> Detecting breaking changes
"
TEST_PATHS=(
tests/api_resources
tests/test_client.py
tests/test_response.py
tests/test_legacy_response.py
)
for
PATHSPEC
in
"
${TEST_PATHS[@]}
"
;
do
#
Try to check out previous versions of the test files
#
with the current SDK.
git checkout
"
$1
"
--
"
${PATHSPEC}
"
2>
/dev/null
||
true
done
#
Instead of running the tests, use the linter to check if an
#
older test is no longer compatible with the latest SDK.
./scripts/lint
Back
|
FazBrowse Home
|
New Git URL