Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixing code coverage #1157

Merged
merged 7 commits into from Dec 12, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 4 additions & 0 deletions .github/actions/coverage/action.yml
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .github/actions/test-e2e/action.yml
Expand Up @@ -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'
Expand Down
2 changes: 1 addition & 1 deletion .github/actions/test-unit/action.yml
Expand Up @@ -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'
Expand Down
16 changes: 11 additions & 5 deletions pyproject.toml
Expand Up @@ -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'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you read these paths from envs?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think so as there is a wildcard in the middle to handle multiple python versions.

]