File tree Expand file tree Collapse file tree 6 files changed +23
-7
lines changed
Expand file tree Collapse file tree 6 files changed +23
-7
lines changed Original file line number Diff line number Diff line change 1+ definitions: [./cmake/stubs/]
2+ disable_formatting: false
3+ extensions: []
4+ indent: 4
5+ line_length: 80
6+ list_expansion: favour-inlining
7+ unsafe: false
8+ warn_about_unknown_commands: true
Original file line number Diff line number Diff line change 5252 sudo apt-get install -y clang-format-18
5353 find . -regex '.*\.\(h\|c\|cpp\|hpp\|cc\|cxx\)' -exec clang-format-18 -style=file -i {} \;
5454
55+ - name : Install and run cmake-linter
56+ run : |
57+ pip install gersemi
58+ gersemi -i --warnings-as-errors src/ tests/ cmake/
59+
5560 - name : Install and run markdownlint
5661 run : |
5762 npm install -g markdownlint-cli
95100 else
96101 echo "The test-workflow.yml file matches main."
97102 fi
98-
Original file line number Diff line number Diff line change 1+ # SPDX-FileCopyrightText: Contributors to the Power Grid Model project <powergridmodel@lfenergy.org>
2+ #
3+ # SPDX-License-Identifier: MPL-2.0
4+
5+ cmake_minimum_required (VERSION 3.23 )
6+
7+ # stub for doctest_discover_tests
8+ function (doctest_discover_tests target )
9+ # no-op
10+ endfunction ()
Original file line number Diff line number Diff line change 22#
33# SPDX-License-Identifier: MPL-2.0
44
5- include ("${doctest_DIR} /doctest.cmake" )
6-
75add_executable (
86 power_grid_model_unit_tests_common
97 "test_entry_point.cpp"
Original file line number Diff line number Diff line change 22#
33# SPDX-License-Identifier: MPL-2.0
44
5- include ("${doctest_DIR} /doctest.cmake" )
6-
75set (PROJECT_SOURCES "test_entry_point.cpp" "test_validation.cpp" )
86
97add_executable (power_grid_model_validation_tests ${PROJECT_SOURCES} )
Original file line number Diff line number Diff line change 22#
33# SPDX-License-Identifier: MPL-2.0
44
5- include ("${doctest_DIR} /doctest.cmake" )
6-
75set (PROJECT_SOURCES
86 "test_entry_point.cpp"
97 "test_api_meta_data.cpp"
You can’t perform that action at this time.
0 commit comments