From 046e369caba6c4f73b00d3844591c88b357aee8c Mon Sep 17 00:00:00 2001 From: Robert Brown <91291114+rjbrown2@users.noreply.github.com> Date: Thu, 19 Dec 2024 22:03:34 -0500 Subject: [PATCH] [#258] MCDC Test --- .github/workflows/mc_dc_coverage.yml | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/.github/workflows/mc_dc_coverage.yml b/.github/workflows/mc_dc_coverage.yml index 77a10d0e..d757dc05 100644 --- a/.github/workflows/mc_dc_coverage.yml +++ b/.github/workflows/mc_dc_coverage.yml @@ -25,7 +25,7 @@ jobs: - name: Configure Safe Directory run: git config --global --add safe.directory $GITHUB_WORKSPACE - - name: Install Dependencies (Including Clang) + - name: Install Dependencies (Including Clang and Python Bindings) env: DEBIAN_FRONTEND: noninteractive run: | @@ -34,16 +34,20 @@ jobs: apt-get install -y \ lcov libcurl4-openssl-dev libmariadb-dev libmariadb-dev-compat \ python3 python3-pip python3-venv gcovr bc pipx wget \ - software-properties-common clang libclang-dev + software-properties-common clang libclang-dev python3-clang pipx install --system-site-packages mcdc-checker - - name: Ensure Pipx Binaries in Path + - name: Verify Clang Python Bindings run: | - echo "Ensuring pipx binary directory is in PATH..." - export PATH=$PATH:$HOME/.local/bin - echo "PATH updated: $PATH" - which mcdc-checker || { echo "mcdc-checker not found in PATH"; exit 1; } - mcdc-checker --version || { echo "Failed to verify mcdc-checker installation"; exit 1; } + echo "Testing Clang Python bindings..." + python3 -c "import clang.cindex; print('Clang bindings are working')" + + - name: Verify Clang Installation + run: | + echo "Checking clang binary..." + which clang || { echo "clang not found in PATH"; exit 1; } + echo "clang version:" + clang --version - name: Build with Coverage Flags run: |