Преглед на файлове

Measure coverage of subprocesses, exclude protobuf compiled files (#568)

Max Ryabinin преди 2 години
родител
ревизия
11d70feb40
променени са 2 файла, в които са добавени 6 реда и са изтрити 1 реда
  1. 1 1
      .github/workflows/run-tests.yml
  2. 5 0
      pyproject.toml

+ 1 - 1
.github/workflows/run-tests.yml

@@ -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 - 0
pyproject.toml

@@ -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"]