Skip to content

Commit

Permalink
fix (#1430)
Browse files Browse the repository at this point in the history
  • Loading branch information
Louis-Dupont committed Aug 30, 2023
1 parent d289cd7 commit e623981
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion tests/breaking_change_tests/breaking_changes_detection.py
Original file line number Diff line number Diff line change
Expand Up @@ -225,9 +225,15 @@ def analyze_breaking_changes(verbose: bool = 1) -> List[Dict[str, Union[str, Lis
root_dir = str(Path(__file__).resolve().parents[2])
git_explorer = GitHelper(git_path=root_dir)

changed_sg_modules = [
module_path
for module_path in git_explorer.diff_files(source_branch="master", current_branch="HEAD")
if module_path.startswith("src/super_gradients/") and not module_path.startswith("src/super_gradients/examples/")
]

summary = ""
breaking_changes_list = []
for module_path in git_explorer.diff_files(source_branch="master", current_branch="HEAD"):
for module_path in changed_sg_modules:

master_code = git_explorer.load_branch_file(branch="master", file_path=module_path)
head_code = git_explorer.load_branch_file(branch="HEAD", file_path=module_path)
Expand Down

0 comments on commit e623981

Please sign in to comment.