Skip to content

Commit

Permalink
Merge pull request #658 from PowerGridModel/feature/check_generated_code
Browse files Browse the repository at this point in the history
[Feature] Check generated code
  • Loading branch information
figueroa1395 authored Jul 2, 2024
2 parents 7a72a69 + 3820052 commit 7679ffb
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 2 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/check-code-quality.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,3 +75,18 @@ jobs:
git status --porcelain --untracked-files=no
exit 1
fi
- name: Check generated code
if: success()
run: |
pip install -r code_generation/requirements.txt
python code_generation/code_gen.py
if [ -n "$(git status --porcelain)" ]; then
echo
echo "The following files are outdated or were manually updated:"
git status --porcelain
exit 1
else
echo
echo "All the generated files are up to date."
fi
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
//
// SPDX-License-Identifier: MPL-2.0

// This header file is automatically generated. DO NOT modify it manually!
// This file is automatically generated. DO NOT modify it manually!

// clang-format off

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
//
// SPDX-License-Identifier: MPL-2.0

// This header file is automatically generated. DO NOT modify it manually!
// This file is automatically generated. DO NOT modify it manually!

// clang-format off

Expand Down

0 comments on commit 7679ffb

Please sign in to comment.