codecov-cli 11.0.2__tar.gz → 11.1.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {codecov_cli-11.0.2/codecov_cli.egg-info → codecov_cli-11.1.0}/PKG-INFO +1 -1
- codecov_cli-11.1.0/codecov_cli/branding.py +6 -0
- {codecov_cli-11.0.2 → codecov_cli-11.1.0}/codecov_cli/commands/base_picking.py +10 -4
- {codecov_cli-11.0.2 → codecov_cli-11.1.0}/codecov_cli/fallbacks.py +15 -0
- {codecov_cli-11.0.2 → codecov_cli-11.1.0}/codecov_cli/helpers/ci_adapters/github_actions.py +11 -11
- {codecov_cli-11.0.2 → codecov_cli-11.1.0}/codecov_cli/helpers/options.py +10 -4
- {codecov_cli-11.0.2 → codecov_cli-11.1.0}/codecov_cli/helpers/upload_type.py +1 -1
- {codecov_cli-11.0.2 → codecov_cli-11.1.0}/codecov_cli/main.py +3 -2
- {codecov_cli-11.0.2 → codecov_cli-11.1.0/codecov_cli.egg-info}/PKG-INFO +1 -1
- {codecov_cli-11.0.2 → codecov_cli-11.1.0}/codecov_cli.egg-info/SOURCES.txt +2 -0
- {codecov_cli-11.0.2 → codecov_cli-11.1.0}/pyproject.toml +3 -4
- {codecov_cli-11.0.2 → codecov_cli-11.1.0}/tests/ci_adapters/test_ghactions.py +6 -0
- codecov_cli-11.1.0/tests/test_fallbacks.py +33 -0
- {codecov_cli-11.0.2 → codecov_cli-11.1.0}/LICENSE +0 -0
- {codecov_cli-11.0.2 → codecov_cli-11.1.0}/MANIFEST.in +0 -0
- {codecov_cli-11.0.2 → codecov_cli-11.1.0}/README.md +0 -0
- {codecov_cli-11.0.2 → codecov_cli-11.1.0}/codecov_cli/__init__.py +0 -0
- {codecov_cli-11.0.2 → codecov_cli-11.1.0}/codecov_cli/commands/__init__.py +0 -0
- {codecov_cli-11.0.2 → codecov_cli-11.1.0}/codecov_cli/commands/commit.py +0 -0
- {codecov_cli-11.0.2 → codecov_cli-11.1.0}/codecov_cli/commands/create_report_result.py +0 -0
- {codecov_cli-11.0.2 → codecov_cli-11.1.0}/codecov_cli/commands/empty_upload.py +0 -0
- {codecov_cli-11.0.2 → codecov_cli-11.1.0}/codecov_cli/commands/get_report_results.py +0 -0
- {codecov_cli-11.0.2 → codecov_cli-11.1.0}/codecov_cli/commands/labelanalysis.py +0 -0
- {codecov_cli-11.0.2 → codecov_cli-11.1.0}/codecov_cli/commands/process_test_results.py +0 -0
- {codecov_cli-11.0.2 → codecov_cli-11.1.0}/codecov_cli/commands/report.py +0 -0
- {codecov_cli-11.0.2 → codecov_cli-11.1.0}/codecov_cli/commands/send_notifications.py +0 -0
- {codecov_cli-11.0.2 → codecov_cli-11.1.0}/codecov_cli/commands/staticanalysis.py +0 -0
- {codecov_cli-11.0.2 → codecov_cli-11.1.0}/codecov_cli/commands/upload.py +0 -0
- {codecov_cli-11.0.2 → codecov_cli-11.1.0}/codecov_cli/commands/upload_coverage.py +0 -0
- {codecov_cli-11.0.2 → codecov_cli-11.1.0}/codecov_cli/commands/upload_process.py +0 -0
- {codecov_cli-11.0.2 → codecov_cli-11.1.0}/codecov_cli/helpers/__init__.py +0 -0
- {codecov_cli-11.0.2 → codecov_cli-11.1.0}/codecov_cli/helpers/args.py +0 -0
- {codecov_cli-11.0.2 → codecov_cli-11.1.0}/codecov_cli/helpers/ci_adapters/__init__.py +0 -0
- {codecov_cli-11.0.2 → codecov_cli-11.1.0}/codecov_cli/helpers/ci_adapters/appveyor_ci.py +0 -0
- {codecov_cli-11.0.2 → codecov_cli-11.1.0}/codecov_cli/helpers/ci_adapters/azure_pipelines.py +0 -0
- {codecov_cli-11.0.2 → codecov_cli-11.1.0}/codecov_cli/helpers/ci_adapters/base.py +0 -0
- {codecov_cli-11.0.2 → codecov_cli-11.1.0}/codecov_cli/helpers/ci_adapters/bitbucket_ci.py +0 -0
- {codecov_cli-11.0.2 → codecov_cli-11.1.0}/codecov_cli/helpers/ci_adapters/bitrise_ci.py +0 -0
- {codecov_cli-11.0.2 → codecov_cli-11.1.0}/codecov_cli/helpers/ci_adapters/buildkite.py +0 -0
- {codecov_cli-11.0.2 → codecov_cli-11.1.0}/codecov_cli/helpers/ci_adapters/circleci.py +0 -0
- {codecov_cli-11.0.2 → codecov_cli-11.1.0}/codecov_cli/helpers/ci_adapters/cirrus_ci.py +0 -0
- {codecov_cli-11.0.2 → codecov_cli-11.1.0}/codecov_cli/helpers/ci_adapters/cloudbuild.py +0 -0
- {codecov_cli-11.0.2 → codecov_cli-11.1.0}/codecov_cli/helpers/ci_adapters/codebuild.py +0 -0
- {codecov_cli-11.0.2 → codecov_cli-11.1.0}/codecov_cli/helpers/ci_adapters/droneci.py +0 -0
- {codecov_cli-11.0.2 → codecov_cli-11.1.0}/codecov_cli/helpers/ci_adapters/gitlab_ci.py +0 -0
- {codecov_cli-11.0.2 → codecov_cli-11.1.0}/codecov_cli/helpers/ci_adapters/heroku.py +0 -0
- {codecov_cli-11.0.2 → codecov_cli-11.1.0}/codecov_cli/helpers/ci_adapters/jenkins.py +0 -0
- {codecov_cli-11.0.2 → codecov_cli-11.1.0}/codecov_cli/helpers/ci_adapters/local.py +0 -0
- {codecov_cli-11.0.2 → codecov_cli-11.1.0}/codecov_cli/helpers/ci_adapters/teamcity.py +0 -0
- {codecov_cli-11.0.2 → codecov_cli-11.1.0}/codecov_cli/helpers/ci_adapters/travis_ci.py +0 -0
- {codecov_cli-11.0.2 → codecov_cli-11.1.0}/codecov_cli/helpers/ci_adapters/woodpeckerci.py +0 -0
- {codecov_cli-11.0.2 → codecov_cli-11.1.0}/codecov_cli/helpers/config.py +0 -0
- {codecov_cli-11.0.2 → codecov_cli-11.1.0}/codecov_cli/helpers/encoder.py +0 -0
- {codecov_cli-11.0.2 → codecov_cli-11.1.0}/codecov_cli/helpers/folder_searcher.py +0 -0
- {codecov_cli-11.0.2 → codecov_cli-11.1.0}/codecov_cli/helpers/git.py +0 -0
- {codecov_cli-11.0.2 → codecov_cli-11.1.0}/codecov_cli/helpers/git_services/__init__.py +0 -0
- {codecov_cli-11.0.2 → codecov_cli-11.1.0}/codecov_cli/helpers/git_services/github.py +0 -0
- {codecov_cli-11.0.2 → codecov_cli-11.1.0}/codecov_cli/helpers/glob.py +0 -0
- {codecov_cli-11.0.2 → codecov_cli-11.1.0}/codecov_cli/helpers/logging_utils.py +0 -0
- {codecov_cli-11.0.2 → codecov_cli-11.1.0}/codecov_cli/helpers/request.py +0 -0
- {codecov_cli-11.0.2 → codecov_cli-11.1.0}/codecov_cli/helpers/validators.py +0 -0
- {codecov_cli-11.0.2 → codecov_cli-11.1.0}/codecov_cli/helpers/versioning_systems.py +0 -0
- {codecov_cli-11.0.2 → codecov_cli-11.1.0}/codecov_cli/opentelemetry.py +0 -0
- {codecov_cli-11.0.2 → codecov_cli-11.1.0}/codecov_cli/plugins/__init__.py +0 -0
- {codecov_cli-11.0.2 → codecov_cli-11.1.0}/codecov_cli/plugins/compress_pycoverage_contexts.py +0 -0
- {codecov_cli-11.0.2 → codecov_cli-11.1.0}/codecov_cli/plugins/gcov.py +0 -0
- {codecov_cli-11.0.2 → codecov_cli-11.1.0}/codecov_cli/plugins/pycoverage.py +0 -0
- {codecov_cli-11.0.2 → codecov_cli-11.1.0}/codecov_cli/plugins/types.py +0 -0
- {codecov_cli-11.0.2 → codecov_cli-11.1.0}/codecov_cli/plugins/xcode.py +0 -0
- {codecov_cli-11.0.2 → codecov_cli-11.1.0}/codecov_cli/runners/__init__.py +0 -0
- {codecov_cli-11.0.2 → codecov_cli-11.1.0}/codecov_cli/runners/dan_runner.py +0 -0
- {codecov_cli-11.0.2 → codecov_cli-11.1.0}/codecov_cli/runners/pytest_standard_runner.py +0 -0
- {codecov_cli-11.0.2 → codecov_cli-11.1.0}/codecov_cli/runners/types.py +0 -0
- {codecov_cli-11.0.2 → codecov_cli-11.1.0}/codecov_cli/services/__init__.py +0 -0
- {codecov_cli-11.0.2 → codecov_cli-11.1.0}/codecov_cli/services/commit/__init__.py +0 -0
- {codecov_cli-11.0.2 → codecov_cli-11.1.0}/codecov_cli/services/commit/base_picking.py +0 -0
- {codecov_cli-11.0.2 → codecov_cli-11.1.0}/codecov_cli/services/empty_upload/__init__.py +0 -0
- {codecov_cli-11.0.2 → codecov_cli-11.1.0}/codecov_cli/services/report/__init__.py +0 -0
- {codecov_cli-11.0.2 → codecov_cli-11.1.0}/codecov_cli/services/upload/__init__.py +0 -0
- {codecov_cli-11.0.2 → codecov_cli-11.1.0}/codecov_cli/services/upload/file_finder.py +0 -0
- {codecov_cli-11.0.2 → codecov_cli-11.1.0}/codecov_cli/services/upload/legacy_upload_sender.py +0 -0
- {codecov_cli-11.0.2 → codecov_cli-11.1.0}/codecov_cli/services/upload/network_finder.py +0 -0
- {codecov_cli-11.0.2 → codecov_cli-11.1.0}/codecov_cli/services/upload/upload_collector.py +0 -0
- {codecov_cli-11.0.2 → codecov_cli-11.1.0}/codecov_cli/services/upload/upload_sender.py +0 -0
- {codecov_cli-11.0.2 → codecov_cli-11.1.0}/codecov_cli/services/upload_completion/__init__.py +0 -0
- {codecov_cli-11.0.2 → codecov_cli-11.1.0}/codecov_cli/services/upload_coverage/__init__.py +0 -0
- {codecov_cli-11.0.2 → codecov_cli-11.1.0}/codecov_cli/types.py +0 -0
- {codecov_cli-11.0.2 → codecov_cli-11.1.0}/codecov_cli.egg-info/dependency_links.txt +0 -0
- {codecov_cli-11.0.2 → codecov_cli-11.1.0}/codecov_cli.egg-info/entry_points.txt +0 -0
- {codecov_cli-11.0.2 → codecov_cli-11.1.0}/codecov_cli.egg-info/requires.txt +0 -0
- {codecov_cli-11.0.2 → codecov_cli-11.1.0}/codecov_cli.egg-info/top_level.txt +0 -0
- {codecov_cli-11.0.2 → codecov_cli-11.1.0}/samples/example_cli_config.yml +0 -0
- {codecov_cli-11.0.2 → codecov_cli-11.1.0}/samples/example_module.js +0 -0
- {codecov_cli-11.0.2 → codecov_cli-11.1.0}/samples/fake_project/.codecov.yaml +0 -0
- {codecov_cli-11.0.2 → codecov_cli-11.1.0}/samples/fake_project/.codecov.yml +0 -0
- {codecov_cli-11.0.2 → codecov_cli-11.1.0}/samples/fake_project/.github/.codecov.yaml +0 -0
- {codecov_cli-11.0.2 → codecov_cli-11.1.0}/samples/fake_project/.github/.codecov.yml +0 -0
- {codecov_cli-11.0.2 → codecov_cli-11.1.0}/samples/fake_project/.github/codecov.yaml +0 -0
- {codecov_cli-11.0.2 → codecov_cli-11.1.0}/samples/fake_project/.github/codecov.yml +0 -0
- {codecov_cli-11.0.2 → codecov_cli-11.1.0}/samples/fake_project/codecov.yaml +0 -0
- {codecov_cli-11.0.2 → codecov_cli-11.1.0}/samples/fake_project/codecov.yml +0 -0
- {codecov_cli-11.0.2 → codecov_cli-11.1.0}/samples/fake_project/dev/.codecov.yaml +0 -0
- {codecov_cli-11.0.2 → codecov_cli-11.1.0}/samples/fake_project/dev/.codecov.yml +0 -0
- {codecov_cli-11.0.2 → codecov_cli-11.1.0}/samples/fake_project/dev/codecov.yaml +0 -0
- {codecov_cli-11.0.2 → codecov_cli-11.1.0}/samples/fake_project/dev/codecov.yml +0 -0
- {codecov_cli-11.0.2 → codecov_cli-11.1.0}/samples/inputs/sample_001.py +0 -0
- {codecov_cli-11.0.2 → codecov_cli-11.1.0}/samples/inputs/sample_002.py +0 -0
- {codecov_cli-11.0.2 → codecov_cli-11.1.0}/samples/inputs/sample_003.js +0 -0
- {codecov_cli-11.0.2 → codecov_cli-11.1.0}/samples/inputs/sample_004.js +0 -0
- {codecov_cli-11.0.2 → codecov_cli-11.1.0}/samples/inputs/sample_005.py +0 -0
- {codecov_cli-11.0.2 → codecov_cli-11.1.0}/samples/junit.xml +0 -0
- {codecov_cli-11.0.2 → codecov_cli-11.1.0}/samples/outputs/sample_001.json +0 -0
- {codecov_cli-11.0.2 → codecov_cli-11.1.0}/samples/outputs/sample_002.json +0 -0
- {codecov_cli-11.0.2 → codecov_cli-11.1.0}/samples/outputs/sample_003.json +0 -0
- {codecov_cli-11.0.2 → codecov_cli-11.1.0}/samples/outputs/sample_004.json +0 -0
- {codecov_cli-11.0.2 → codecov_cli-11.1.0}/samples/outputs/sample_005.json +0 -0
- {codecov_cli-11.0.2 → codecov_cli-11.1.0}/setup.cfg +0 -0
- {codecov_cli-11.0.2 → codecov_cli-11.1.0}/setup.py +0 -0
- {codecov_cli-11.0.2 → codecov_cli-11.1.0}/tests/__init__.py +0 -0
- {codecov_cli-11.0.2 → codecov_cli-11.1.0}/tests/ci_adapters/test_appveyor.py +0 -0
- {codecov_cli-11.0.2 → codecov_cli-11.1.0}/tests/ci_adapters/test_azure_pipelines.py +0 -0
- {codecov_cli-11.0.2 → codecov_cli-11.1.0}/tests/ci_adapters/test_bitbucket_ci.py +0 -0
- {codecov_cli-11.0.2 → codecov_cli-11.1.0}/tests/ci_adapters/test_bitrise.py +0 -0
- {codecov_cli-11.0.2 → codecov_cli-11.1.0}/tests/ci_adapters/test_buildkite.py +0 -0
- {codecov_cli-11.0.2 → codecov_cli-11.1.0}/tests/ci_adapters/test_circleci.py +0 -0
- {codecov_cli-11.0.2 → codecov_cli-11.1.0}/tests/ci_adapters/test_cirrusci.py +0 -0
- {codecov_cli-11.0.2 → codecov_cli-11.1.0}/tests/ci_adapters/test_cloudbuild.py +0 -0
- {codecov_cli-11.0.2 → codecov_cli-11.1.0}/tests/ci_adapters/test_codebuild.py +0 -0
- {codecov_cli-11.0.2 → codecov_cli-11.1.0}/tests/ci_adapters/test_droneci.py +0 -0
- {codecov_cli-11.0.2 → codecov_cli-11.1.0}/tests/ci_adapters/test_gitlabci.py +0 -0
- {codecov_cli-11.0.2 → codecov_cli-11.1.0}/tests/ci_adapters/test_herokuci.py +0 -0
- {codecov_cli-11.0.2 → codecov_cli-11.1.0}/tests/ci_adapters/test_jenkins.py +0 -0
- {codecov_cli-11.0.2 → codecov_cli-11.1.0}/tests/ci_adapters/test_local.py +0 -0
- {codecov_cli-11.0.2 → codecov_cli-11.1.0}/tests/ci_adapters/test_teamcity.py +0 -0
- {codecov_cli-11.0.2 → codecov_cli-11.1.0}/tests/ci_adapters/test_travis_ci.py +0 -0
- {codecov_cli-11.0.2 → codecov_cli-11.1.0}/tests/ci_adapters/test_woodpeckerci.py +0 -0
- {codecov_cli-11.0.2 → codecov_cli-11.1.0}/tests/commands/__init__.py +0 -0
- {codecov_cli-11.0.2 → codecov_cli-11.1.0}/tests/commands/test_invoke_empty_upload.py +0 -0
- {codecov_cli-11.0.2 → codecov_cli-11.1.0}/tests/commands/test_invoke_labelanalysis.py +0 -0
- {codecov_cli-11.0.2 → codecov_cli-11.1.0}/tests/commands/test_invoke_upload.py +0 -0
- {codecov_cli-11.0.2 → codecov_cli-11.1.0}/tests/commands/test_invoke_upload_coverage.py +0 -0
- {codecov_cli-11.0.2 → codecov_cli-11.1.0}/tests/commands/test_invoke_upload_process.py +0 -0
- {codecov_cli-11.0.2 → codecov_cli-11.1.0}/tests/commands/test_process_test_results.py +0 -0
- {codecov_cli-11.0.2 → codecov_cli-11.1.0}/tests/commands/test_upload_token_discovery.py +0 -0
- {codecov_cli-11.0.2 → codecov_cli-11.1.0}/tests/conftest.py +0 -0
- {codecov_cli-11.0.2 → codecov_cli-11.1.0}/tests/data/files_to_fix_examples/bad_encoding.go +0 -0
- {codecov_cli-11.0.2 → codecov_cli-11.1.0}/tests/data/files_to_fix_examples/sample.cpp +0 -0
- {codecov_cli-11.0.2 → codecov_cli-11.1.0}/tests/data/files_to_fix_examples/sample.go +0 -0
- {codecov_cli-11.0.2 → codecov_cli-11.1.0}/tests/data/files_to_fix_examples/sample.kt +0 -0
- {codecov_cli-11.0.2 → codecov_cli-11.1.0}/tests/data/files_to_fix_examples/sample.php +0 -0
- {codecov_cli-11.0.2 → codecov_cli-11.1.0}/tests/data/reports_examples.py +0 -0
- {codecov_cli-11.0.2 → codecov_cli-11.1.0}/tests/data//320/232/320/276/320/275/321/202/321/200/320/276/320/273/320/273/320/265/321/200/321/213//320/237/320/276/320/273/321/214/320/267/320/276/320/262/320/260/321/202/320/265/320/273/321/214//320/223/320/273/320/260/320/262/320/275/321/213/320/271/320/232/320/276/320/275/321/202/321/200/320/276/320/273/320/273/320/265/321/200.php" +0 -0
- {codecov_cli-11.0.2 → codecov_cli-11.1.0}/tests/factory.py +0 -0
- {codecov_cli-11.0.2 → codecov_cli-11.1.0}/tests/helpers/git_services/test_github.py +0 -0
- {codecov_cli-11.0.2 → codecov_cli-11.1.0}/tests/helpers/test_args.py +0 -0
- {codecov_cli-11.0.2 → codecov_cli-11.1.0}/tests/helpers/test_ci_adapter_selection.py +0 -0
- {codecov_cli-11.0.2 → codecov_cli-11.1.0}/tests/helpers/test_config.py +0 -0
- {codecov_cli-11.0.2 → codecov_cli-11.1.0}/tests/helpers/test_encoder.py +0 -0
- {codecov_cli-11.0.2 → codecov_cli-11.1.0}/tests/helpers/test_folder_searcher.py +0 -0
- {codecov_cli-11.0.2 → codecov_cli-11.1.0}/tests/helpers/test_git.py +0 -0
- {codecov_cli-11.0.2 → codecov_cli-11.1.0}/tests/helpers/test_legacy_upload_sender.py +0 -0
- {codecov_cli-11.0.2 → codecov_cli-11.1.0}/tests/helpers/test_network_finder.py +0 -0
- {codecov_cli-11.0.2 → codecov_cli-11.1.0}/tests/helpers/test_request.py +0 -0
- {codecov_cli-11.0.2 → codecov_cli-11.1.0}/tests/helpers/test_upload_sender.py +0 -0
- {codecov_cli-11.0.2 → codecov_cli-11.1.0}/tests/helpers/test_validators.py +0 -0
- {codecov_cli-11.0.2 → codecov_cli-11.1.0}/tests/helpers/test_versioning_systems.py +0 -0
- {codecov_cli-11.0.2 → codecov_cli-11.1.0}/tests/plugins/test_compress_pycoverage_contexts.py +0 -0
- {codecov_cli-11.0.2 → codecov_cli-11.1.0}/tests/plugins/test_gcov.py +0 -0
- {codecov_cli-11.0.2 → codecov_cli-11.1.0}/tests/plugins/test_instantiation.py +0 -0
- {codecov_cli-11.0.2 → codecov_cli-11.1.0}/tests/plugins/test_pycoverage.py +0 -0
- {codecov_cli-11.0.2 → codecov_cli-11.1.0}/tests/plugins/test_xcode.py +0 -0
- {codecov_cli-11.0.2 → codecov_cli-11.1.0}/tests/runners/test_dan_runner.py +0 -0
- {codecov_cli-11.0.2 → codecov_cli-11.1.0}/tests/runners/test_pytest_standard_runner.py +0 -0
- {codecov_cli-11.0.2 → codecov_cli-11.1.0}/tests/runners/test_runners.py +0 -0
- {codecov_cli-11.0.2 → codecov_cli-11.1.0}/tests/runners/test_types.py +0 -0
- {codecov_cli-11.0.2 → codecov_cli-11.1.0}/tests/services/commit/test_base_picking.py +0 -0
- {codecov_cli-11.0.2 → codecov_cli-11.1.0}/tests/services/commit/test_commit_service.py +0 -0
- {codecov_cli-11.0.2 → codecov_cli-11.1.0}/tests/services/empty_upload/test_empty_upload.py +0 -0
- {codecov_cli-11.0.2 → codecov_cli-11.1.0}/tests/services/report/test_report_results.py +0 -0
- {codecov_cli-11.0.2 → codecov_cli-11.1.0}/tests/services/report/test_report_service.py +0 -0
- {codecov_cli-11.0.2 → codecov_cli-11.1.0}/tests/services/upload/test_coverage_file_finder.py +0 -0
- {codecov_cli-11.0.2 → codecov_cli-11.1.0}/tests/services/upload/test_upload_collector.py +0 -0
- {codecov_cli-11.0.2 → codecov_cli-11.1.0}/tests/services/upload/test_upload_service.py +0 -0
- {codecov_cli-11.0.2 → codecov_cli-11.1.0}/tests/services/upload_completion/test_upload_completion.py +0 -0
- {codecov_cli-11.0.2 → codecov_cli-11.1.0}/tests/test_codecov_cli.py +0 -0
- {codecov_cli-11.0.2 → codecov_cli-11.1.0}/tests/test_helpers.py +0 -0
- {codecov_cli-11.0.2 → codecov_cli-11.1.0}/tests/test_types.py +0 -0
|
@@ -4,7 +4,12 @@ import typing
|
|
|
4
4
|
import click
|
|
5
5
|
import sentry_sdk
|
|
6
6
|
|
|
7
|
-
from codecov_cli.fallbacks import
|
|
7
|
+
from codecov_cli.fallbacks import (
|
|
8
|
+
BrandedCodecovOption,
|
|
9
|
+
BrandedOption,
|
|
10
|
+
CodecovOption,
|
|
11
|
+
FallbackFieldEnum,
|
|
12
|
+
)
|
|
8
13
|
from codecov_cli.helpers.args import get_cli_args
|
|
9
14
|
from codecov_cli.helpers.encoder import slug_without_subgroups_is_invalid
|
|
10
15
|
from codecov_cli.services.commit.base_picking import base_picking_logic
|
|
@@ -29,16 +34,17 @@ logger = logging.getLogger("codecovcli")
|
|
|
29
34
|
)
|
|
30
35
|
@click.option(
|
|
31
36
|
"--slug",
|
|
32
|
-
cls=
|
|
37
|
+
cls=BrandedCodecovOption,
|
|
33
38
|
fallback_field=FallbackFieldEnum.slug,
|
|
34
39
|
help="owner/repo slug",
|
|
35
|
-
envvar="
|
|
40
|
+
envvar="SLUG",
|
|
36
41
|
)
|
|
37
42
|
@click.option(
|
|
38
43
|
"-t",
|
|
39
44
|
"--token",
|
|
45
|
+
cls=BrandedOption,
|
|
40
46
|
help="Codecov upload token",
|
|
41
|
-
envvar="
|
|
47
|
+
envvar="TOKEN",
|
|
42
48
|
)
|
|
43
49
|
@click.option(
|
|
44
50
|
"--service",
|
|
@@ -39,3 +39,18 @@ class CodecovOption(click.Option):
|
|
|
39
39
|
if res is not None:
|
|
40
40
|
return res
|
|
41
41
|
return None
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
class BrandedOption(click.Option):
|
|
45
|
+
def resolve_envvar_value(self, ctx: click.Context) -> typing.Optional[str]:
|
|
46
|
+
actual_var = self.envvar
|
|
47
|
+
self.envvar = [
|
|
48
|
+
f"{brand.value.upper()}_{actual_var}" for brand in ctx.obj["branding"]
|
|
49
|
+
]
|
|
50
|
+
res = super().resolve_envvar_value(ctx)
|
|
51
|
+
self.envvar = actual_var
|
|
52
|
+
return res
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
class BrandedCodecovOption(CodecovOption, BrandedOption):
|
|
56
|
+
pass
|
|
@@ -66,21 +66,21 @@ class GithubActionsCIAdapter(CIAdapterBase):
|
|
|
66
66
|
return os.getenv("GITHUB_REPOSITORY")
|
|
67
67
|
|
|
68
68
|
def _get_branch(self):
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
69
|
+
def remove_prefix(s: str, prefix: str) -> str:
|
|
70
|
+
if s.startswith(prefix):
|
|
71
|
+
return s[len(prefix) :]
|
|
72
|
+
return ""
|
|
72
73
|
|
|
73
|
-
|
|
74
|
+
head_ref = os.getenv("GITHUB_HEAD_REF", "")
|
|
75
|
+
ref = remove_prefix(os.getenv("GITHUB_REF", ""), "refs/heads/")
|
|
74
76
|
|
|
75
|
-
|
|
76
|
-
return None
|
|
77
|
-
|
|
78
|
-
match = re.search(r"refs/heads/(.*)", branch_ref)
|
|
77
|
+
branch = head_ref or ref
|
|
79
78
|
|
|
80
|
-
|
|
81
|
-
|
|
79
|
+
# branch format for merge queue CI runs:
|
|
80
|
+
# gh-readonly-queue/<branch-name>/<pr-number>-<pr-name>
|
|
81
|
+
if branch.startswith("gh-readonly-queue/"):
|
|
82
|
+
return branch.split("/")[1]
|
|
82
83
|
|
|
83
|
-
branch = match.group(1)
|
|
84
84
|
return branch or None
|
|
85
85
|
|
|
86
86
|
def _get_service(self):
|
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
import click
|
|
2
2
|
|
|
3
|
-
from codecov_cli.fallbacks import
|
|
3
|
+
from codecov_cli.fallbacks import (
|
|
4
|
+
BrandedCodecovOption,
|
|
5
|
+
BrandedOption,
|
|
6
|
+
CodecovOption,
|
|
7
|
+
FallbackFieldEnum,
|
|
8
|
+
)
|
|
4
9
|
from codecov_cli.helpers.git import GitService
|
|
5
10
|
|
|
6
11
|
_global_options = [
|
|
@@ -31,16 +36,17 @@ _global_options = [
|
|
|
31
36
|
"-t",
|
|
32
37
|
"--token",
|
|
33
38
|
help="Codecov upload token",
|
|
34
|
-
|
|
39
|
+
cls=BrandedOption,
|
|
40
|
+
envvar="TOKEN",
|
|
35
41
|
),
|
|
36
42
|
click.option(
|
|
37
43
|
"-r",
|
|
38
44
|
"--slug",
|
|
39
45
|
"slug",
|
|
40
|
-
cls=
|
|
46
|
+
cls=BrandedCodecovOption,
|
|
41
47
|
fallback_field=FallbackFieldEnum.slug,
|
|
42
48
|
help="owner/repo slug used instead of the private repo token in Self-hosted",
|
|
43
|
-
envvar="
|
|
49
|
+
envvar="SLUG",
|
|
44
50
|
),
|
|
45
51
|
]
|
|
46
52
|
|
|
@@ -9,7 +9,7 @@ class ReportType(Enum):
|
|
|
9
9
|
def report_type_from_str(report_type_str: str) -> ReportType:
|
|
10
10
|
if report_type_str == "coverage":
|
|
11
11
|
return ReportType.COVERAGE
|
|
12
|
-
elif report_type_str == "test_results":
|
|
12
|
+
elif report_type_str.replace("-", "_") == "test_results":
|
|
13
13
|
return ReportType.TEST_RESULTS
|
|
14
14
|
else:
|
|
15
15
|
raise ValueError(f"Invalid upload type: {report_type_str}")
|
|
@@ -5,7 +5,7 @@ import typing
|
|
|
5
5
|
import click
|
|
6
6
|
|
|
7
7
|
from codecov_cli import __version__
|
|
8
|
-
from codecov_cli.
|
|
8
|
+
from codecov_cli.branding import Branding
|
|
9
9
|
from codecov_cli.commands.base_picking import pr_base_picking
|
|
10
10
|
from codecov_cli.commands.commit import create_commit
|
|
11
11
|
from codecov_cli.commands.create_report_result import create_report_results
|
|
@@ -23,6 +23,7 @@ from codecov_cli.helpers.ci_adapters import get_ci_adapter, get_ci_providers_lis
|
|
|
23
23
|
from codecov_cli.helpers.config import load_cli_config
|
|
24
24
|
from codecov_cli.helpers.logging_utils import configure_logger
|
|
25
25
|
from codecov_cli.helpers.versioning_systems import get_versioning_system
|
|
26
|
+
from codecov_cli.opentelemetry import init_telem
|
|
26
27
|
|
|
27
28
|
logger = logging.getLogger("codecovcli")
|
|
28
29
|
|
|
@@ -70,7 +71,7 @@ def cli(
|
|
|
70
71
|
ctx.default_map = {ctx.invoked_subcommand: {"token": token}}
|
|
71
72
|
ctx.obj["enterprise_url"] = enterprise_url
|
|
72
73
|
ctx.obj["disable_telem"] = disable_telem
|
|
73
|
-
|
|
74
|
+
ctx.obj["branding"] = [Branding.CODECOV]
|
|
74
75
|
init_telem(ctx.obj)
|
|
75
76
|
|
|
76
77
|
|
|
@@ -4,6 +4,7 @@ README.md
|
|
|
4
4
|
pyproject.toml
|
|
5
5
|
setup.py
|
|
6
6
|
codecov_cli/__init__.py
|
|
7
|
+
codecov_cli/branding.py
|
|
7
8
|
codecov_cli/fallbacks.py
|
|
8
9
|
codecov_cli/main.py
|
|
9
10
|
codecov_cli/opentelemetry.py
|
|
@@ -115,6 +116,7 @@ tests/__init__.py
|
|
|
115
116
|
tests/conftest.py
|
|
116
117
|
tests/factory.py
|
|
117
118
|
tests/test_codecov_cli.py
|
|
119
|
+
tests/test_fallbacks.py
|
|
118
120
|
tests/test_helpers.py
|
|
119
121
|
tests/test_types.py
|
|
120
122
|
tests/ci_adapters/test_appveyor.py
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "codecov-cli"
|
|
3
|
-
version = "11.0
|
|
3
|
+
version = "11.1.0"
|
|
4
4
|
description = "Codecov Command Line Interface"
|
|
5
5
|
readme = "README.md"
|
|
6
6
|
license-files = ["LICENSE"]
|
|
@@ -23,6 +23,7 @@ dependencies = [
|
|
|
23
23
|
[dependency-groups]
|
|
24
24
|
dev = [
|
|
25
25
|
"pre-commit==3.*",
|
|
26
|
+
"pyinstaller==6.*",
|
|
26
27
|
"pytest==7.*",
|
|
27
28
|
"pytest-asyncio==0.21.1",
|
|
28
29
|
"pytest-cov==4.*",
|
|
@@ -42,7 +43,5 @@ build-backend = "setuptools.build_meta"
|
|
|
42
43
|
packages = ["codecov_cli"]
|
|
43
44
|
|
|
44
45
|
[tool.pytest.ini_options]
|
|
45
|
-
env = [
|
|
46
|
-
"CODECOV_ENV=test",
|
|
47
|
-
]
|
|
46
|
+
env = ["CODECOV_ENV=test"]
|
|
48
47
|
|
|
@@ -207,6 +207,12 @@ class TestGithubActions(object):
|
|
|
207
207
|
({GithubActionsEnvEnum.GITHUB_REF: r"doesn't_match"}, None),
|
|
208
208
|
({GithubActionsEnvEnum.GITHUB_REF: r"refs/heads/"}, None),
|
|
209
209
|
({GithubActionsEnvEnum.GITHUB_REF: r"refs/heads/abc"}, "abc"),
|
|
210
|
+
(
|
|
211
|
+
{
|
|
212
|
+
GithubActionsEnvEnum.GITHUB_REF: r"refs/heads/gh-readonly-queue/abc/pr-name-number"
|
|
213
|
+
},
|
|
214
|
+
"abc",
|
|
215
|
+
),
|
|
210
216
|
],
|
|
211
217
|
)
|
|
212
218
|
def test_branch(self, env_dict, expected, mocker):
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import click
|
|
2
|
+
|
|
3
|
+
from codecov_cli.fallbacks import BrandedOption
|
|
4
|
+
from codecov_cli.branding import Branding
|
|
5
|
+
|
|
6
|
+
from click.testing import CliRunner
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
@click.group()
|
|
10
|
+
@click.pass_context
|
|
11
|
+
def cli(ctx):
|
|
12
|
+
ctx.obj = {}
|
|
13
|
+
ctx.obj["branding"] = [Branding.CODECOV, Branding.PREVENT]
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
@cli.command()
|
|
17
|
+
@click.option("--test", cls=BrandedOption, envvar="TEST")
|
|
18
|
+
@click.pass_context
|
|
19
|
+
def hello_world(ctx, test):
|
|
20
|
+
click.echo(f"{test}")
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
def test_branded_option():
|
|
24
|
+
runner = CliRunner()
|
|
25
|
+
|
|
26
|
+
result = runner.invoke(cli, ["hello-world"], env={"CODECOV_TEST": "hello_codecov"})
|
|
27
|
+
assert result.output == "hello_codecov\n"
|
|
28
|
+
|
|
29
|
+
result = runner.invoke(cli, ["hello-world"], env={"PREVENT_TEST": "hello_prevent"})
|
|
30
|
+
assert result.output == "hello_prevent\n"
|
|
31
|
+
|
|
32
|
+
result = runner.invoke(cli, ["hello-world"])
|
|
33
|
+
assert result.output == "None\n"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{codecov_cli-11.0.2 → codecov_cli-11.1.0}/codecov_cli/helpers/ci_adapters/azure_pipelines.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{codecov_cli-11.0.2 → codecov_cli-11.1.0}/codecov_cli/plugins/compress_pycoverage_contexts.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{codecov_cli-11.0.2 → codecov_cli-11.1.0}/codecov_cli/services/upload/legacy_upload_sender.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{codecov_cli-11.0.2 → codecov_cli-11.1.0}/codecov_cli/services/upload_completion/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{codecov_cli-11.0.2 → codecov_cli-11.1.0}/tests/plugins/test_compress_pycoverage_contexts.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{codecov_cli-11.0.2 → codecov_cli-11.1.0}/tests/services/upload/test_coverage_file_finder.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{codecov_cli-11.0.2 → codecov_cli-11.1.0}/tests/services/upload_completion/test_upload_completion.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|