Skip to content

Commit

Permalink
Merge branch 'main' into tony/single-endpoint-coverage-command
Browse files Browse the repository at this point in the history
  • Loading branch information
tony-codecov authored Nov 18, 2024
2 parents c86f5b7 + 0ebc513 commit 378e395
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 7 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build_for_pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,6 @@ jobs:
- name: Publish package to PyPi
if: inputs.publish == true
uses: pypa/gh-action-pypi-publish@release/v1



with:
attestations: false
verbose: true
7 changes: 5 additions & 2 deletions codecov_cli/services/report/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
import time
import typing

import requests

from codecov_cli.helpers import request
from codecov_cli.helpers.config import CODECOV_API_URL, CODECOV_INGEST_URL
from codecov_cli.helpers.encoder import encode_slug
Expand All @@ -26,7 +28,7 @@ def create_report_logic(
enterprise_url: str,
pull_request_number: int,
fail_on_error: bool = False,
args: dict = None,
args: typing.Union[dict, None] = None,
):
encoded_slug = encode_slug(slug)
sending_result = send_create_report_request(
Expand Down Expand Up @@ -71,7 +73,7 @@ def create_report_results_logic(
token: typing.Optional[str],
enterprise_url: str,
fail_on_error: bool = False,
args: dict = None,
args: typing.Union[dict, None] = None,
):
encoded_slug = encode_slug(slug)
sending_result = send_reports_result_request(
Expand All @@ -81,6 +83,7 @@ def create_report_results_logic(
service=service,
token=token,
enterprise_url=enterprise_url,
args=args,
)

log_warnings_and_errors_if_any(
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

setup(
name="codecov-cli",
version="0.9.0",
version="0.9.4",
packages=find_packages(exclude=["contrib", "docs", "tests*"]),
description="Codecov Command Line Interface",
long_description=long_description,
Expand All @@ -19,7 +19,7 @@
author_email="[email protected]",
install_requires=[
"click==8.*",
"httpx==0.23.*",
"httpx==0.27.*",
"ijson==3.*",
"pyyaml==6.*",
"responses==0.21.*",
Expand Down
2 changes: 2 additions & 0 deletions tests/services/report/test_report_results.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ def test_report_results_command_with_warnings(mocker):

assert res == mock_send_reports_result_request.return_value
mock_send_reports_result_request.assert_called_with(
args=None,
commit_sha="commit_sha",
report_code="code",
service="service",
Expand Down Expand Up @@ -85,6 +86,7 @@ def test_report_results_command_with_error(mocker):
]
assert res == mock_send_reports_result_request.return_value
mock_send_reports_result_request.assert_called_with(
args=None,
commit_sha="commit_sha",
report_code="code",
service="service",
Expand Down

0 comments on commit 378e395

Please sign in to comment.