Skip to content

Commit

Permalink
Merge branch 'main' into th/httpx0.27.x
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasrockhu-codecov authored Nov 15, 2024
2 parents 4063dbc + c51e790 commit 536e3d8
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 6 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
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

setup(
name="codecov-cli",
version="0.8.0",
version="0.9.4",
packages=find_packages(exclude=["contrib", "docs", "tests*"]),
description="Codecov Command Line Interface",
long_description=long_description,
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 536e3d8

Please sign in to comment.