diff --git a/codecov_cli/services/upload/collectors/coverage_upload_collector.py b/codecov_cli/services/upload/collectors/coverage_upload_collector.py index a1647664..b562a081 100644 --- a/codecov_cli/services/upload/collectors/coverage_upload_collector.py +++ b/codecov_cli/services/upload/collectors/coverage_upload_collector.py @@ -176,7 +176,9 @@ def _generate_payload( "format": "legacy", "value": self._get_file_fixers(upload_data), }, - "network_files": network_files if network_files is not None else [], + "network_files": [file.get_filename().decode() for file in network_files] + if network_files is not None + else [], "coverage_files": self._get_coverage_files(upload_data), "metadata": {}, } diff --git a/codecov_cli/types.py b/codecov_cli/types.py index 58f53d54..772b36d9 100644 --- a/codecov_cli/types.py +++ b/codecov_cli/types.py @@ -43,7 +43,7 @@ class UploadCollectionResultFileFixer(object): @dataclass class UploadCollectionResult(object): __slots__ = ["network", "coverage_files", "file_fixes"] - network: typing.List[str] + network: typing.List[UploadCollectionResultFile] coverage_files: typing.List[UploadCollectionResultFile] file_fixes: typing.List[UploadCollectionResultFileFixer]