diff --git a/.github/workflows/build_and_test.yml b/.github/workflows/build_and_test.yml index 84c1313..374577b 100644 --- a/.github/workflows/build_and_test.yml +++ b/.github/workflows/build_and_test.yml @@ -50,11 +50,13 @@ jobs: python3 testA.py cd .. - - name: Code Coverage + - name: Code Coverage (skipping broken) + if : false run: | gcov -abcfu CMakeFiles/pylua.dir/src/lua_py.c gcov -abcfu CMakeFiles/pylua.dir/src/py_lua.c gcov -abcfu CMakeFiles/pylua.dir/src/convert.c - - name: Upload Code Coverage + - name: Upload Code Coverage (skipping broken) + if: false uses: codecov/codecov-action@v1 diff --git a/CMakeLists.txt b/CMakeLists.txt index 27e8d3d..f4be262 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -19,11 +19,11 @@ message(STATUS "LUA_LIBRARIES = ${LUA_LIBRARIES}") message(STATUS "LUA_INCLUDE_DIRS = ${LUA_INCLUDE_DIRS}") message(STATUS "LUA_CFLAGS_OTHER = ${LUA_CFLAGS_OTHER}") -if (CMAKE_BUILD_TYPE STREQUAL "Debug" AND NOT WIN32) - message(STATUS "Building in Debug, Therefore compiling with Code Coverage") - target_compile_options(pylua PRIVATE -coverage) - target_link_options(pylua PRIVATE -coverage) -endif() +# if (CMAKE_BUILD_TYPE STREQUAL "Debug" AND NOT WIN32) +# message(STATUS "Building in Debug, Therefore compiling with Code Coverage") +# target_compile_options(pylua PRIVATE -coverage) +# target_link_options(pylua PRIVATE -coverage) +# endif() target_include_directories(pylua PRIVATE "src/")