diff --git a/.github/workflows/broadcast_api_changes.yml b/.github/workflows.old/broadcast_api_changes.yml similarity index 100% rename from .github/workflows/broadcast_api_changes.yml rename to .github/workflows.old/broadcast_api_changes.yml diff --git a/.github/workflows/build_assets.yml b/.github/workflows.old/build_assets.yml similarity index 100% rename from .github/workflows/build_assets.yml rename to .github/workflows.old/build_assets.yml diff --git a/.github/workflows/build_for_pypi.yml b/.github/workflows.old/build_for_pypi.yml similarity index 100% rename from .github/workflows/build_for_pypi.yml rename to .github/workflows.old/build_for_pypi.yml diff --git a/.github/workflows/create_release.yml b/.github/workflows.old/create_release.yml similarity index 100% rename from .github/workflows/create_release.yml rename to .github/workflows.old/create_release.yml diff --git a/.github/workflows/create_release_pr.yml b/.github/workflows.old/create_release_pr.yml similarity index 100% rename from .github/workflows/create_release_pr.yml rename to .github/workflows.old/create_release_pr.yml diff --git a/.github/workflows/release_flow.yml b/.github/workflows.old/release_flow.yml similarity index 100% rename from .github/workflows/release_flow.yml rename to .github/workflows.old/release_flow.yml diff --git a/.github/workflows/ci-job.yml b/.github/workflows/ci-job.yml index cea929f5..1fdf120b 100644 --- a/.github/workflows/ci-job.yml +++ b/.github/workflows/ci-job.yml @@ -23,12 +23,14 @@ jobs: python-version: "3.12" - name: Install dependencies run: | + cd codecov-cli python -m pip install --upgrade pip pip install -r requirements.txt python -m pip install -e . pip install -r tests/requirements.txt - name: Test with pytest run: | + cd codecov-cli pytest --cov --junitxml=3.12junit.xml env: CODECOV_ENV: test diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 92e34102..820f23b7 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -28,29 +28,29 @@ jobs: - uses: actions/checkout@v4 with: submodules: true - - name: Set up Python 3.11 + - name: Set up Python 3.12 uses: actions/setup-python@v5 with: - python-version: "3.11" + python-version: "3.12" - name: Install dependencies run: | python -m pip install --upgrade pip - pip install -r requirements.txt - python -m pip install -e . + python -m pip install -e codecov-cli + python -m pip install -e prevent-cli - name: Run command_dump run: | - python command_dump.py + ./command_dump.py - name: Detect changes on commit run: | - if [ -n "$(git diff codecovcli_commands)" ]; then + if [ -n "$(git diff codecov-cli/codecovcli_commands prevent-cli/preventcli_commands)" ]; then echo "Please run `python command_dump.py` before submitting, or install the hooks" - echo "$(git diff codecovcli_commands)" + echo "$(git diff codecov-cli/codecovcli_commands prevent-cli/preventcli_commands)" exit 1 fi codecov-startup: runs-on: ubuntu-latest - if: ${{ !github.event.pull_request.head.repo.fork && github.repository_owner == 'codecov' }} + if: ${{ !github.event.pull_request.head.repo.fork && github.repository_owner == 'getsentry' }} steps: - uses: actions/checkout@v4 with: @@ -60,6 +60,7 @@ jobs: with: python-version: "3.12" - name: Install CLI + # todo: update this to dogfood prevent cli, maybe try both? run: | pip install codecov-cli - name: Create commit in codecov @@ -88,52 +89,22 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip - pip install -r requirements.txt - python -m pip install -e . - pip install -r tests/requirements.txt + python -m pip install -e codecov-cli + python -m pip install -e prevent-cli + pip install -r codecov-cli/tests/requirements.txt - name: Test with pytest run: | + cd codecov-cli pytest --cov --junitxml=${{matrix.os}}-${{matrix.python-version}}junit.xml env: CODECOV_ENV: test - name: Dogfooding codecov-cli - if: ${{ !github.event.pull_request.head.repo.fork && github.repository_owner == 'codecov' }} + if: ${{ !github.event.pull_request.head.repo.fork && github.repository_owner == 'getsentry' }} run: | - codecovcli -v do-upload --fail-on-error -t ${{ secrets.CODECOV_TOKEN }} --plugin pycoverage --flag python${{matrix.python-version}} - codecovcli do-upload --report-type test_results --fail-on-error -t ${{ secrets.CODECOV_TOKEN }} --plugin pycoverage --flag python${{matrix.python-version}} - - name: Upload artifacts for test-results-processing - if: ${{ !cancelled() }} - uses: actions/upload-artifact@v4 - with: - name: ${{matrix.os}}-${{matrix.python-version}}junit.xml - path: ${{matrix.os}}-${{matrix.python-version}}junit.xml - - process-test-results: - if: ${{ always() }} - needs: build-test-upload - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - with: - submodules: true - fetch-depth: 2 - - uses: actions/setup-python@v5 - with: - python-version: "3.12" - - name: Install dependencies for Dogfooding - run: | - python -m pip install --upgrade pip - pip install -r requirements.txt - python -m pip install -e . - pip install -r tests/requirements.txt - - name: Download all test results - uses: actions/download-artifact@v4 - with: - pattern: "*junit.xml" - path: "test_results" - merge-multiple: true - - - name: Dogfooding codecov-cli - if: ${{ !cancelled() && github.ref && contains(github.ref, 'pull') }} + codecovcli -v do-upload --fail-on-error -t ${{ secrets.CODECOV_TOKEN }} --plugin pycoverage --flag python${{matrix.python-version}} --flag codecovcli + codecovcli do-upload --report-type test_results --fail-on-error -t ${{ secrets.CODECOV_TOKEN }} --plugin pycoverage --flag python${{matrix.python-version}} --flag codecovcli + - name: Dogfooding sentry-prevent-cli + if: ${{ !github.event.pull_request.head.repo.fork && github.repository_owner == 'getsentry' }} run: | - codecovcli process-test-results --dir test_results --github-token ${{ secrets.GITHUB_TOKEN }} + sentry-prevent-cli -v do-upload --fail-on-error -t ${{ secrets.CODECOV_TOKEN }} --plugin pycoverage --flag python${{matrix.python-version}} --flag sentry-prevent-cli + sentry-prevent-cli do-upload --report-type test_results --fail-on-error -t ${{ secrets.CODECOV_TOKEN }} --plugin pycoverage --flag python${{matrix.python-version}} --flag sentry-prevent-cli diff --git a/codecov-cli/tests/helpers/test_versioning_systems.py b/codecov-cli/tests/helpers/test_versioning_systems.py index 2437be89..4ab1a653 100644 --- a/codecov-cli/tests/helpers/test_versioning_systems.py +++ b/codecov-cli/tests/helpers/test_versioning_systems.py @@ -151,7 +151,7 @@ def test_exotic_git_filenames(): # See assert ( - "tests/data/Контроллеры/Пользователь/ГлавныйКонтроллер.php" in found_repo_files + "codecov-cli/tests/data/Контроллеры/Пользователь/ГлавныйКонтроллер.php" in found_repo_files ) diff --git a/codecov-cli/tests/services/upload/test_upload_collector.py b/codecov-cli/tests/services/upload/test_upload_collector.py index 1551e860..38d2f3e4 100644 --- a/codecov-cli/tests/services/upload/test_upload_collector.py +++ b/codecov-cli/tests/services/upload/test_upload_collector.py @@ -176,7 +176,9 @@ def test_generate_upload_data(tmp_path): file_finder = FileFinder(tmp_path) - network_finder = NetworkFinder(GitVersioningSystem(), False, None, None, None) + network_finder = NetworkFinder( + GitVersioningSystem(), False, None, None, Path("codecov-cli") + ) collector = UploadCollector([], network_finder, file_finder, None) diff --git a/command_dump.py b/command_dump.py old mode 100644 new mode 100755 index 546fbd54..57b85dfc --- a/command_dump.py +++ b/command_dump.py @@ -1,7 +1,8 @@ +#!/usr/bin/env python3 import subprocess -def command_dump(commands): +def command_dump(commands: list[str], out_path: str): print(f"Dumping {' '.join(commands)}") command_docs = subprocess.run( [*commands, "--help"], capture_output=True @@ -16,16 +17,19 @@ def command_dump(commands): if "Commands:" in split_docs: sub_commands = [ - sub_command.strip() for sub_command in split_docs[index_of + 1 :] if sub_command.strip() + sub_command.strip() + for sub_command in split_docs[index_of + 1 :] + if sub_command.strip() ] for sub_command in sub_commands: command_docs = "\n".join( - [command_docs, command_dump([*commands, sub_command])] + [command_docs, command_dump([*commands, sub_command], out_path)] ) - with open("codecovcli_commands", "w") as f: + with open(out_path, "w") as f: f.write(command_docs) if __name__ == "__main__": - command_dump(["codecovcli"]) + command_dump(["codecovcli"], "codecov-cli/codecovcli_commands") + command_dump(["sentry-prevent-cli"], "prevent-cli/preventcli_commands") diff --git a/prevent-cli/preventcli_commands b/prevent-cli/preventcli_commands new file mode 100644 index 00000000..c1293074 --- /dev/null +++ b/prevent-cli/preventcli_commands @@ -0,0 +1,338 @@ +Usage: sentry-prevent-cli [OPTIONS] COMMAND [ARGS]... + +Options: + --auto-load-params-from [CircleCI|GithubActions|GitlabCI|Bitbucket|Bitrise|AppVeyor|Woodpecker|Heroku|DroneCI|BuildKite|AzurePipelines|Jenkins|CirrusCI|Teamcity|Travis|AWSCodeBuild|GoogleCloudBuild|Local] + --codecov-yml-path PATH + -u, --enterprise-url, --url TEXT + Change the upload host (Enterprise use) + -v, --verbose Use verbose logging + --disable-telem Disable sending telemetry data to Codecov + --version Show the version and exit. + --help Show this message and exit. + +Commands: + create-commit + create-report + do-upload + empty-upload + pr-base-picking + process-test-results + send-notifications + upload-coverage + upload-process + +Usage: sentry-prevent-cli create-commit [OPTIONS] + +Options: + --parent-sha TEXT SHA (with 40 chars) of what should be the + parent of this commit + -P, --pr, --pull-request-number TEXT + Specify the pull request number manually. + Used to override pre-existing CI environment + variables + -B, --branch TEXT Branch to which this commit belongs to + -C, --sha, --commit-sha TEXT Commit SHA (with 40 chars) [required] + -Z, --fail-on-error Exit with non-zero code in case of error + --git-service [github|gitlab|bitbucket|github_enterprise|gitlab_enterprise|bitbucket_server] + -t, --token TEXT Codecov upload token + -r, --slug TEXT owner/repo slug used instead of the private + repo token in Self-hosted + -h, --help Show this message and exit. + +Usage: sentry-prevent-cli create-report [OPTIONS] + +Options: + -P, --pr, --pull-request-number TEXT + Specify the pull request number manually. + Used to override pre-existing CI environment + variables + -C, --sha, --commit-sha TEXT Commit SHA (with 40 chars) [required] + -Z, --fail-on-error Exit with non-zero code in case of error + --git-service [github|gitlab|bitbucket|github_enterprise|gitlab_enterprise|bitbucket_server] + -t, --token TEXT Codecov upload token + -r, --slug TEXT owner/repo slug used instead of the private + repo token in Self-hosted + -h, --help Show this message and exit. + +Usage: sentry-prevent-cli do-upload [OPTIONS] + +Options: + --network-root-folder PATH Root folder from which to consider paths on + the network section [default: (Current + working directory)] + -s, --dir, --coverage-files-search-root-folder, --files-search-root-folder PATH + Folder where to search for coverage files + [default: (Current Working Directory)] + --exclude, --coverage-files-search-exclude-folder, --files-search-exclude-folder PATH + Folders to exclude from search + -f, --file, --coverage-files-search-direct-file, --files-search-direct-file PATH + Explicit files to upload. These will be + added to the coverage files found for + upload. If you wish to only upload the + specified files, please consider using + --disable-search to disable uploading other + files. + --recurse-submodules Whether to enumerate files inside of + submodules for path-fixing purposes. Off by + default. + --disable-search Disable search for coverage files. This is + helpful when specifying what files you want + to upload with the --file option. + --disable-file-fixes Disable file fixes to ignore common lines + from coverage (e.g. blank lines or empty + brackets) + -b, --build, --build-code TEXT Specify the build number manually + --build-url TEXT The URL of the build where this is running + --job-code TEXT + -n, --name TEXT Custom defined name of the upload. Visible + in Codecov UI + -B, --branch TEXT Branch to which this commit belongs to + -P, --pr, --pull-request-number TEXT + Specify the pull request number manually. + Used to override pre-existing CI environment + variables + -e, --env, --env-var TEXT Specify environment variables to be included + with this build. + -F, --flag TEXT Flag the upload to group coverage metrics. + Multiple flags allowed. + --plugin TEXT + -d, --dry-run Don't upload files to Codecov + --legacy, --use-legacy-uploader + Use the legacy upload endpoint + --handle-no-reports-found Raise no exceptions when no coverage reports + found. + --report-type [coverage|test_results] + The type of the file to upload, coverage by + default. Possible values are: testing, + coverage. + --network-filter TEXT Specify a filter on the files listed in the + network section of the Codecov report. This + will only add files whose path begin with + the specified filter. Useful for upload- + specific path fixing + --network-prefix TEXT Specify a prefix on files listed in the + network section of the Codecov report. + Useful to help resolve path fixing + --gcov-args TEXT Extra arguments to pass to gcov + --gcov-ignore TEXT Paths to ignore during gcov gathering + --gcov-include TEXT Paths to include during gcov gathering + --gcov-executable TEXT gcov executable to run. Defaults to 'gcov' + --swift-project TEXT Specify the swift project + -C, --sha, --commit-sha TEXT Commit SHA (with 40 chars) [required] + -Z, --fail-on-error Exit with non-zero code in case of error + --git-service [github|gitlab|bitbucket|github_enterprise|gitlab_enterprise|bitbucket_server] + -t, --token TEXT Codecov upload token + -r, --slug TEXT owner/repo slug used instead of the private + repo token in Self-hosted + -h, --help Show this message and exit. + +Usage: sentry-prevent-cli empty-upload [OPTIONS] + +Options: + --force + --parent-sha TEXT SHA (with 40 chars) of what should be the + parent of this commit + -P, --pr, --pull-request-number TEXT + Specify the pull request number manually. + Used to override pre-existing CI environment + variables + -B, --branch TEXT Branch to which this commit belongs to + -C, --sha, --commit-sha TEXT Commit SHA (with 40 chars) [required] + -Z, --fail-on-error Exit with non-zero code in case of error + --git-service [github|gitlab|bitbucket|github_enterprise|gitlab_enterprise|bitbucket_server] + -t, --token TEXT Codecov upload token + -r, --slug TEXT owner/repo slug used instead of the private + repo token in Self-hosted + -h, --help Show this message and exit. + +Usage: sentry-prevent-cli pr-base-picking [OPTIONS] + +Options: + --base-sha TEXT Base commit SHA (with 40 chars) [required] + --pr TEXT Pull Request id to associate commit with + --slug TEXT owner/repo slug + -t, --token TEXT Codecov upload token + --service TEXT Specify the service provider of the repo e.g. github + -h, --help Show this message and exit. + +Usage: sentry-prevent-cli process-test-results [OPTIONS] + +Options: + -s, --dir, --files-search-root-folder PATH + Folder where to search for test results + files [default: (Current Working + Directory)] + -f, --file, --files-search-direct-file PATH + Explicit files to upload. These will be + added to the test results files to be + processed. If you wish to only process the + specified files, please consider using + --disable-search to disable processing other + files. + --exclude, --files-search-exclude-folder PATH + Folders to exclude from search + --disable-search Disable search for coverage files. This is + helpful when specifying what files you want + to upload with the --file option. + --github-token TEXT If specified, output the message to the + specified GitHub PR. + -h, --help Show this message and exit. + +Usage: sentry-prevent-cli send-notifications [OPTIONS] + +Options: + -C, --sha, --commit-sha TEXT Commit SHA (with 40 chars) [required] + -Z, --fail-on-error Exit with non-zero code in case of error + --git-service [github|gitlab|bitbucket|github_enterprise|gitlab_enterprise|bitbucket_server] + -t, --token TEXT Codecov upload token + -r, --slug TEXT owner/repo slug used instead of the private + repo token in Self-hosted + -h, --help Show this message and exit. + +Usage: sentry-prevent-cli upload-coverage [OPTIONS] + +Options: + -C, --sha, --commit-sha TEXT Commit SHA (with 40 chars) [required] + -Z, --fail-on-error Exit with non-zero code in case of error + --git-service [github|gitlab|bitbucket|github_enterprise|gitlab_enterprise|bitbucket_server] + -t, --token TEXT Codecov upload token + -r, --slug TEXT owner/repo slug used instead of the private + repo token in Self-hosted + --network-root-folder PATH Root folder from which to consider paths on + the network section [default: (Current + working directory)] + -s, --dir, --coverage-files-search-root-folder, --files-search-root-folder PATH + Folder where to search for coverage files + [default: (Current Working Directory)] + --exclude, --coverage-files-search-exclude-folder, --files-search-exclude-folder PATH + Folders to exclude from search + -f, --file, --coverage-files-search-direct-file, --files-search-direct-file PATH + Explicit files to upload. These will be + added to the coverage files found for + upload. If you wish to only upload the + specified files, please consider using + --disable-search to disable uploading other + files. + --recurse-submodules Whether to enumerate files inside of + submodules for path-fixing purposes. Off by + default. + --disable-search Disable search for coverage files. This is + helpful when specifying what files you want + to upload with the --file option. + --disable-file-fixes Disable file fixes to ignore common lines + from coverage (e.g. blank lines or empty + brackets) + -b, --build, --build-code TEXT Specify the build number manually + --build-url TEXT The URL of the build where this is running + --job-code TEXT + -n, --name TEXT Custom defined name of the upload. Visible + in Codecov UI + -B, --branch TEXT Branch to which this commit belongs to + -P, --pr, --pull-request-number TEXT + Specify the pull request number manually. + Used to override pre-existing CI environment + variables + -e, --env, --env-var TEXT Specify environment variables to be included + with this build. + -F, --flag TEXT Flag the upload to group coverage metrics. + Multiple flags allowed. + --plugin TEXT + -d, --dry-run Don't upload files to Codecov + --legacy, --use-legacy-uploader + Use the legacy upload endpoint + --handle-no-reports-found Raise no exceptions when no coverage reports + found. + --report-type [coverage|test_results] + The type of the file to upload, coverage by + default. Possible values are: testing, + coverage. + --network-filter TEXT Specify a filter on the files listed in the + network section of the Codecov report. This + will only add files whose path begin with + the specified filter. Useful for upload- + specific path fixing + --network-prefix TEXT Specify a prefix on files listed in the + network section of the Codecov report. + Useful to help resolve path fixing + --gcov-args TEXT Extra arguments to pass to gcov + --gcov-ignore TEXT Paths to ignore during gcov gathering + --gcov-include TEXT Paths to include during gcov gathering + --gcov-executable TEXT gcov executable to run. Defaults to 'gcov' + --swift-project TEXT Specify the swift project + --parent-sha TEXT SHA (with 40 chars) of what should be the + parent of this commit + -h, --help Show this message and exit. + +Usage: sentry-prevent-cli upload-process [OPTIONS] + +Options: + -C, --sha, --commit-sha TEXT Commit SHA (with 40 chars) [required] + -Z, --fail-on-error Exit with non-zero code in case of error + --git-service [github|gitlab|bitbucket|github_enterprise|gitlab_enterprise|bitbucket_server] + -t, --token TEXT Codecov upload token + -r, --slug TEXT owner/repo slug used instead of the private + repo token in Self-hosted + --network-root-folder PATH Root folder from which to consider paths on + the network section [default: (Current + working directory)] + -s, --dir, --coverage-files-search-root-folder, --files-search-root-folder PATH + Folder where to search for coverage files + [default: (Current Working Directory)] + --exclude, --coverage-files-search-exclude-folder, --files-search-exclude-folder PATH + Folders to exclude from search + -f, --file, --coverage-files-search-direct-file, --files-search-direct-file PATH + Explicit files to upload. These will be + added to the coverage files found for + upload. If you wish to only upload the + specified files, please consider using + --disable-search to disable uploading other + files. + --recurse-submodules Whether to enumerate files inside of + submodules for path-fixing purposes. Off by + default. + --disable-search Disable search for coverage files. This is + helpful when specifying what files you want + to upload with the --file option. + --disable-file-fixes Disable file fixes to ignore common lines + from coverage (e.g. blank lines or empty + brackets) + -b, --build, --build-code TEXT Specify the build number manually + --build-url TEXT The URL of the build where this is running + --job-code TEXT + -n, --name TEXT Custom defined name of the upload. Visible + in Codecov UI + -B, --branch TEXT Branch to which this commit belongs to + -P, --pr, --pull-request-number TEXT + Specify the pull request number manually. + Used to override pre-existing CI environment + variables + -e, --env, --env-var TEXT Specify environment variables to be included + with this build. + -F, --flag TEXT Flag the upload to group coverage metrics. + Multiple flags allowed. + --plugin TEXT + -d, --dry-run Don't upload files to Codecov + --legacy, --use-legacy-uploader + Use the legacy upload endpoint + --handle-no-reports-found Raise no exceptions when no coverage reports + found. + --report-type [coverage|test_results] + The type of the file to upload, coverage by + default. Possible values are: testing, + coverage. + --network-filter TEXT Specify a filter on the files listed in the + network section of the Codecov report. This + will only add files whose path begin with + the specified filter. Useful for upload- + specific path fixing + --network-prefix TEXT Specify a prefix on files listed in the + network section of the Codecov report. + Useful to help resolve path fixing + --gcov-args TEXT Extra arguments to pass to gcov + --gcov-ignore TEXT Paths to ignore during gcov gathering + --gcov-include TEXT Paths to include during gcov gathering + --gcov-executable TEXT gcov executable to run. Defaults to 'gcov' + --swift-project TEXT Specify the swift project + --parent-sha TEXT SHA (with 40 chars) of what should be the + parent of this commit + -h, --help Show this message and exit. diff --git a/prevent-cli/pyproject.toml b/prevent-cli/pyproject.toml index dac6cb81..1e1a9413 100644 --- a/prevent-cli/pyproject.toml +++ b/prevent-cli/pyproject.toml @@ -6,7 +6,7 @@ readme = "README.md" authors = [ { name = "joseph-sentry", email = "joseph.sawaya@sentry.io" } ] -requires-python = ">=3.12" +requires-python = ">=3.9" dependencies = [ "click==8.*", "codecov-cli>=10.3.0", @@ -22,10 +22,8 @@ dependencies = [ ] - [project.scripts] -prevent = "prevent_cli.main:run" -preventcli = "prevent_cli.main:run" +sentry-prevent-cli = "prevent_cli.main:run" [build-system] requires = ["setuptools"] @@ -38,4 +36,3 @@ packages = ["prevent_cli"] [tool.uv.sources] codecov-cli = {path = "../codecov-cli"} - diff --git a/prevent-cli/src/prevent_cli/main.py b/prevent-cli/src/prevent_cli/main.py index f7bd4a9d..335dd4a1 100644 --- a/prevent-cli/src/prevent_cli/main.py +++ b/prevent-cli/src/prevent_cli/main.py @@ -33,6 +33,11 @@ case_sensitive=False, ), ) +@click.option( + "--codecov-yml-path", + type=click.Path(path_type=pathlib.Path), + default=None, +) @click.option( "--enterprise-url", "--url", "-u", help="Change the upload host (Enterprise use)" ) @@ -56,6 +61,11 @@ def cli( ctx.help_option_names = ["-h", "--help"] ctx.obj["ci_adapter"] = get_ci_adapter(auto_load_params_from) ctx.obj["versioning_system"] = get_versioning_system() + ctx.obj["codecov_yaml"] = load_cli_config(codecov_yml_path) + if ctx.obj["codecov_yaml"] is None: + logger.debug("No codecov_yaml found") + elif (token := ctx.obj["codecov_yaml"].get("codecov", {}).get("token")) is not None: + ctx.default_map = {ctx.invoked_subcommand: {"token": token}} ctx.obj["enterprise_url"] = enterprise_url ctx.obj["disable_telem"] = disable_telem @@ -65,8 +75,6 @@ def cli( cli.add_command(do_upload) cli.add_command(create_commit) cli.add_command(create_report) -cli.add_command(create_report_results) -cli.add_command(get_report_results) cli.add_command(pr_base_picking) cli.add_command(empty_upload) cli.add_command(upload_coverage) @@ -74,6 +82,10 @@ def cli( cli.add_command(send_notifications) cli.add_command(process_test_results) +# deprecated commands: +cli.add_command(create_report_results) +cli.add_command(get_report_results) + def run(): cli(obj={}) diff --git a/prevent-cli/uv.lock b/prevent-cli/uv.lock index 539d99b2..c0bb4532 100644 --- a/prevent-cli/uv.lock +++ b/prevent-cli/uv.lock @@ -1,5 +1,4 @@ version = 1 -revision = 1 requires-python = ">=3.12" [[package]] @@ -74,7 +73,7 @@ wheels = [ [[package]] name = "codecov-cli" -version = "10.3.0" +version = "10.4.0" source = { directory = "../codecov-cli" } dependencies = [ { name = "click" },