diff --git a/.github/workflows/check-code-quality.yml b/.github/workflows/check-code-quality.yml index 74b8808..4c4a44c 100644 --- a/.github/workflows/check-code-quality.yml +++ b/.github/workflows/check-code-quality.yml @@ -59,7 +59,7 @@ jobs: - name: Install and run pylint run: | pip install pylint . - pylint power_grid_model + pylint power_grid_model_io_native git restore README.md - name: Install and run clang-format @@ -69,7 +69,6 @@ jobs: - name: If needed raise error run: | - if [[ `git status --porcelain --untracked-files=no` ]]; then echo "Formatting not correct! See below the files which need to be reformatted!" git status --porcelain --untracked-files=no diff --git a/.github/workflows/clang-tidy.yml b/.github/workflows/clang-tidy.yml index 73c7129..f99f7e3 100644 --- a/.github/workflows/clang-tidy.yml +++ b/.github/workflows/clang-tidy.yml @@ -19,10 +19,10 @@ on: target: type: choice description: The CMake target to run - default: power_grid_model_c + default: power_grid_model_io_native_c options: - all - - power_grid_model_c + - power_grid_model_io_native_c required: true concurrency: @@ -63,7 +63,7 @@ jobs: - name: Set build target in case of push if: github.event_name != 'workflow_dispatch' run: | - echo "TARGET=power_grid_model_c" >> $GITHUB_ENV + echo "TARGET=power_grid_model_io_native_c" >> $GITHUB_ENV - name: Set build target in case of workflow dispatch if: github.event_name == 'workflow_dispatch' diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 1ba951f..d79a113 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -140,13 +140,6 @@ jobs: # install cmake --build --preset ${{ env.PRESET }} --verbose -j 1 --target install; if(!$?) { Exit $LASTEXITCODE } - # build and run integration test - cd tests/package_tests; if(!$?) { Exit $LASTEXITCODE } - cmake --preset ${{ env.PRESET }}; if(!$?) { Exit $LASTEXITCODE } - cmake --build --preset ${{ env.PRESET }} --verbose -j 1; if(!$?) { Exit $LASTEXITCODE } - cmake --build --preset ${{ env.PRESET }} --verbose -j 1 --target install; if(!$?) { Exit $LASTEXITCODE } - install\${{ env.PRESET }}\bin\power_grid_model_package_test; if(!$?) { Exit $LASTEXITCODE } - build-cpp-test-macos: runs-on: macos-14 strategy: @@ -169,7 +162,7 @@ jobs: brew install ninja boost eigen nlohmann-json msgpack-cxx doctest - name: Build and test - run: ./build.sh -p ${{ env.PRESET }} -e -i -t + run: ./build.sh -p ${{ env.PRESET }} -i build-and-test-python: strategy: diff --git a/build.sh b/build.sh old mode 100644 new mode 100755 diff --git a/llvm-gcov.sh b/llvm-gcov.sh old mode 100644 new mode 100755 diff --git a/set_pypi_version.py b/set_pypi_version.py index 67c785a..b83e664 100644 --- a/set_pypi_version.py +++ b/set_pypi_version.py @@ -43,7 +43,7 @@ def set_version(pkg_dir: Path): def get_pypi_latest(): r = requests.get("https://pypi.org/pypi/power-grid-model-io-native/json") data = r.json() - version: str = data["info"]["version"] + version: str = data.get("info", {}).get("version", "0.0.1") return (int(x) for x in version.split("."))