Skip to content

Commit

Permalink
Measure coverage of subprocesses, exclude protobuf compiled files (#568)
Browse files Browse the repository at this point in the history
  • Loading branch information
mryab committed Jun 12, 2023
1 parent 7a91d03 commit 11d70fe
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,6 @@ jobs:
- name: Test
run: |
export HIVEMIND_MEMORY_SHARING_STRATEGY=file_descriptor
pytest --cov hivemind -v tests
pytest --cov hivemind --cov-config=pyproject.toml -v tests
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
5 changes: 5 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,8 @@ line_length = 119
combine_as_imports = true
combine_star = true
known_local_folder = ["arguments", "test_utils", "tests", "utils"]

[tool.coverage.run]
concurrency = ["thread", "multiprocessing"]
omit = ["hivemind/proto/*"]
source = ["hivemind"]

0 comments on commit 11d70fe

Please sign in to comment.