File tree 6 files changed +6
-14
lines changed
6 files changed +6
-14
lines changed Original file line number Diff line number Diff line change 59
59
- name : Install and run pylint
60
60
run : |
61
61
pip install pylint .
62
- pylint power_grid_model
62
+ pylint power_grid_model_io_native
63
63
git restore README.md
64
64
65
65
- name : Install and run clang-format
69
69
70
70
- name : If needed raise error
71
71
run : |
72
-
73
72
if [[ `git status --porcelain --untracked-files=no` ]]; then
74
73
echo "Formatting not correct! See below the files which need to be reformatted!"
75
74
git status --porcelain --untracked-files=no
Original file line number Diff line number Diff line change 19
19
target :
20
20
type : choice
21
21
description : The CMake target to run
22
- default : power_grid_model_c
22
+ default : power_grid_model_io_native_c
23
23
options :
24
24
- all
25
- - power_grid_model_c
25
+ - power_grid_model_io_native_c
26
26
required : true
27
27
28
28
concurrency :
63
63
- name : Set build target in case of push
64
64
if : github.event_name != 'workflow_dispatch'
65
65
run : |
66
- echo "TARGET=power_grid_model_c " >> $GITHUB_ENV
66
+ echo "TARGET=power_grid_model_io_native_c " >> $GITHUB_ENV
67
67
68
68
- name : Set build target in case of workflow dispatch
69
69
if : github.event_name == 'workflow_dispatch'
Original file line number Diff line number Diff line change @@ -140,13 +140,6 @@ jobs:
140
140
# install
141
141
cmake --build --preset ${{ env.PRESET }} --verbose -j 1 --target install; if(!$?) { Exit $LASTEXITCODE }
142
142
143
- # build and run integration test
144
- cd tests/package_tests; if(!$?) { Exit $LASTEXITCODE }
145
- cmake --preset ${{ env.PRESET }}; if(!$?) { Exit $LASTEXITCODE }
146
- cmake --build --preset ${{ env.PRESET }} --verbose -j 1; if(!$?) { Exit $LASTEXITCODE }
147
- cmake --build --preset ${{ env.PRESET }} --verbose -j 1 --target install; if(!$?) { Exit $LASTEXITCODE }
148
- install\${{ env.PRESET }}\bin\power_grid_model_package_test; if(!$?) { Exit $LASTEXITCODE }
149
-
150
143
build-cpp-test-macos :
151
144
runs-on : macos-14
152
145
strategy :
@@ -169,7 +162,7 @@ jobs:
169
162
brew install ninja boost eigen nlohmann-json msgpack-cxx doctest
170
163
171
164
- name : Build and test
172
- run : ./build.sh -p ${{ env.PRESET }} -e -i -t
165
+ run : ./build.sh -p ${{ env.PRESET }} -i
173
166
174
167
build-and-test-python :
175
168
strategy :
Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ def set_version(pkg_dir: Path):
43
43
def get_pypi_latest ():
44
44
r = requests .get ("https://pypi.org/pypi/power-grid-model-io-native/json" )
45
45
data = r .json ()
46
- version : str = data [ "info" ][ "version" ]
46
+ version : str = data . get ( "info" , {}). get ( "version" , "0.0.1" )
47
47
return (int (x ) for x in version .split ("." ))
48
48
49
49
You can’t perform that action at this time.
0 commit comments