diff --git a/.github/actions/coverage/action.yml b/.github/actions/coverage/action.yml index b6fd21ce6..218564482 100644 --- a/.github/actions/coverage/action.yml +++ b/.github/actions/coverage/action.yml @@ -31,6 +31,10 @@ runs: run: coverage combine shell: bash + - name: Show coverage report + run: coverage report -m + shell: bash + - name: Prepare coverage report run: coverage xml shell: bash diff --git a/.github/actions/test-e2e/action.yml b/.github/actions/test-e2e/action.yml index ccfc18769..4467a449c 100644 --- a/.github/actions/test-e2e/action.yml +++ b/.github/actions/test-e2e/action.yml @@ -44,7 +44,7 @@ runs: path: ./.coverage* - name: Report - uses: Raalsky/action-junit-report@main + uses: mikepenz/action-junit-report@v3.6.2 if: always() with: report_paths: './test-results/test-e2e-*.xml' diff --git a/.github/actions/test-unit/action.yml b/.github/actions/test-unit/action.yml index 5a50f1d96..43a3dd726 100644 --- a/.github/actions/test-unit/action.yml +++ b/.github/actions/test-unit/action.yml @@ -43,7 +43,7 @@ runs: path: ./test-results - name: Report - uses: Raalsky/action-junit-report@main + uses: mikepenz/action-junit-report@v3.6.2 if: always() with: report_paths: './test-results/test-unit-*.xml' diff --git a/pyproject.toml b/pyproject.toml index 42be51e67..2fbf9d3e1 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -192,9 +192,15 @@ force_grid_wrap = 2 max-line-length = 120 extend-ignore = "E203" -[tool.coverage] -source = 'src/' - [tool.coverage.run] -branch = true -relative_files = true +source_pkgs = ['neptune'] +branch = false +relative_files = false + +[tool.coverage.paths] +source = [ + 'src/neptune', + '/opt/hostedtoolcache/Python/*/x64/lib/python*/site-packages/neptune', + '/Users/runner/hostedtoolcache/Python/*/x64/lib/python*/site-packages/neptune', + 'C:\hostedtoolcache\windows\Python\*\x64\Lib\site-packages\neptune' +]