diff --git a/.github/workflows/Publish.yml b/.github/workflows/Publish.yml index 9fec0fae..c18500b8 100644 --- a/.github/workflows/Publish.yml +++ b/.github/workflows/Publish.yml @@ -182,9 +182,13 @@ jobs: name: coverage-reports path: .qodana/code-coverage - - name: Fix Coverage Paths + - name: Debug Coverage Paths run: | - find .qodana/code-coverage -name "*.xml" -type f -exec sed -i 's|/home/runner/work/QuanTAlib/QuanTAlib|/data/project|g' {} + + echo "=== Coverage XML paths sample ===" + grep -h 'fullPath=' .qodana/code-coverage/*.xml | head -10 + echo "" + echo "=== Project structure ===" + find . -name "*.cs" -type f | grep -E "lib/|quantower/" | head -10 - name: Qodana Scan uses: JetBrains/qodana-action@v2024.3.4 diff --git a/qodana.yaml b/qodana.yaml index 65bd0c46..1aa46d80 100644 --- a/qodana.yaml +++ b/qodana.yaml @@ -109,3 +109,7 @@ linter: jetbrains/qodana-dotnet:2024.3 dotnet: solution: QuanTAlib.sln + coverage: + pathMappings: + - from: /home/runner/work/QuanTAlib/QuanTAlib + to: /data/project