From 70848b50c5ad003df92a7b45322b08e0e450c3f9 Mon Sep 17 00:00:00 2001 From: Tom Hu Date: Wed, 19 Feb 2025 17:21:45 -0300 Subject: [PATCH 01/32] fix: test new workflow --- .github/workflows/build_for_pypi.yml | 1 - .github/workflows/test_build_for_pypi.yml | 28 +++++++++++++++++++++++ MANIFEST.in | 1 + 3 files changed, 29 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/test_build_for_pypi.yml diff --git a/.github/workflows/build_for_pypi.yml b/.github/workflows/build_for_pypi.yml index 45167a0a2..0f313e206 100644 --- a/.github/workflows/build_for_pypi.yml +++ b/.github/workflows/build_for_pypi.yml @@ -64,4 +64,3 @@ jobs: with: name: cibw-wheels-${{ matrix.os }} path: ./wheelhouse/*.whl - diff --git a/.github/workflows/test_build_for_pypi.yml b/.github/workflows/test_build_for_pypi.yml new file mode 100644 index 000000000..73d823449 --- /dev/null +++ b/.github/workflows/test_build_for_pypi.yml @@ -0,0 +1,28 @@ +--- +name: Build and Optionally Publish to PyPi + +on: + pull_request: + branches: main + +jobs: + build_src_for_pypi: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + with: + persist-credentials: false + submodules: true + - name: Install dependencies + run: | + pip install build + - name: Build src dist + run: | + python -m build --sdist + env: + PIP_CONSTRAINT: requirements.txt + - name: Store the distribution packages + uses: actions/upload-artifact@v4 + with: + name: cibw-sdist + path: ./**/*.tar.gz diff --git a/MANIFEST.in b/MANIFEST.in index be346cbe9..96b255260 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -1,3 +1,4 @@ include languages/treesitterjavascript/src/tree_sitter/parser.h include languages/treesitterpython/src/tree_sitter/parser.h +include codecov_cli/ include requirements.txt From 7adc642420ac1b52e1e370b366a1c055def125cf Mon Sep 17 00:00:00 2001 From: Tom Hu Date: Wed, 19 Feb 2025 17:23:11 -0300 Subject: [PATCH 02/32] fix: small edits --- .github/workflows/build_for_pypi.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/build_for_pypi.yml b/.github/workflows/build_for_pypi.yml index 0f313e206..54a0a4a45 100644 --- a/.github/workflows/build_for_pypi.yml +++ b/.github/workflows/build_for_pypi.yml @@ -1,9 +1,7 @@ --- -name: Build and Optionally Publish to PyPi +name: Build for PyPi on: - pull_request: - branches: main workflow_call: inputs: publish: From 440a86169ab363a4fdc7c76ab0b3228cfa734222 Mon Sep 17 00:00:00 2001 From: Tom Hu Date: Wed, 19 Feb 2025 17:27:28 -0300 Subject: [PATCH 03/32] fix: ls --- .github/workflows/test_build_for_pypi.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test_build_for_pypi.yml b/.github/workflows/test_build_for_pypi.yml index 73d823449..745a094e0 100644 --- a/.github/workflows/test_build_for_pypi.yml +++ b/.github/workflows/test_build_for_pypi.yml @@ -1,5 +1,5 @@ --- -name: Build and Optionally Publish to PyPi +name: Test Build and Optionally Publish to PyPi on: pull_request: @@ -16,6 +16,9 @@ jobs: - name: Install dependencies run: | pip install build + - name: ls + run: | + ls */*/* - name: Build src dist run: | python -m build --sdist From 765e4ba2e7c1cbd1b945215103b2dfed0b792a05 Mon Sep 17 00:00:00 2001 From: Tom Hu Date: Wed, 19 Feb 2025 17:33:10 -0300 Subject: [PATCH 04/32] fix: update MANIFEST.in --- MANIFEST.in | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/MANIFEST.in b/MANIFEST.in index 96b255260..4a14cb427 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -1,4 +1,6 @@ include languages/treesitterjavascript/src/tree_sitter/parser.h include languages/treesitterpython/src/tree_sitter/parser.h -include codecov_cli/ include requirements.txt + +recursive-include codecov_cli * +recursive-include tests * From c5e9a1a8980a4e29cb6b1e132ced747432a28163 Mon Sep 17 00:00:00 2001 From: Tom Hu Date: Wed, 19 Feb 2025 17:55:20 -0300 Subject: [PATCH 05/32] fix: add tests to build-dist --- .github/workflows/build_for_pypi.yml | 4 +++- pyproject.toml | 2 ++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build_for_pypi.yml b/.github/workflows/build_for_pypi.yml index 54a0a4a45..3a599367b 100644 --- a/.github/workflows/build_for_pypi.yml +++ b/.github/workflows/build_for_pypi.yml @@ -2,12 +2,14 @@ name: Build for PyPi on: + pull_request: + branches: main workflow_call: inputs: publish: type: boolean default: false - description: "Publish to PyPi" + description: "Build for PyPi" jobs: build_src_for_pypi: diff --git a/pyproject.toml b/pyproject.toml index fdd7db668..88ee92154 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -41,7 +41,9 @@ env = [ packages = ["codecov_cli"] [tool.cibuildwheel] +before-test = "pip install -r tests/requirements.txt" skip = "pp*" +test-command = "pytest" [tool.cibuildwheel.config-settings] pure-python = "false" From 8bd7d31749ffa547b9a9a3bb22b96b7c0381853f Mon Sep 17 00:00:00 2001 From: Tom Hu Date: Wed, 19 Feb 2025 17:57:48 -0300 Subject: [PATCH 06/32] fix: small issue with len(None) --- codecov_cli/services/upload/network_finder.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/codecov_cli/services/upload/network_finder.py b/codecov_cli/services/upload/network_finder.py index 0bf1aee31..d741f9c92 100644 --- a/codecov_cli/services/upload/network_finder.py +++ b/codecov_cli/services/upload/network_finder.py @@ -26,7 +26,7 @@ def find_files(self, ignore_filters=False) -> typing.List[str]: if self.network_prefix: files = [self.network_prefix + file for file in files] - return files + return files or [] def select_network_finder( From b026e8dc97461f03483024df2c5f46416fff72cd Mon Sep 17 00:00:00 2001 From: Tom Hu Date: Wed, 19 Feb 2025 18:00:09 -0300 Subject: [PATCH 07/32] fix: push up the list call --- codecov_cli/services/upload/network_finder.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/codecov_cli/services/upload/network_finder.py b/codecov_cli/services/upload/network_finder.py index d741f9c92..8b1a728d5 100644 --- a/codecov_cli/services/upload/network_finder.py +++ b/codecov_cli/services/upload/network_finder.py @@ -18,7 +18,7 @@ def __init__( self.network_root_folder = network_root_folder def find_files(self, ignore_filters=False) -> typing.List[str]: - files = self.versioning_system.list_relevant_files(self.network_root_folder) + files = self.versioning_system.list_relevant_files(self.network_root_folder) or [] if files and not ignore_filters: if self.network_filter: @@ -26,7 +26,7 @@ def find_files(self, ignore_filters=False) -> typing.List[str]: if self.network_prefix: files = [self.network_prefix + file for file in files] - return files or [] + return files def select_network_finder( From 20ad6bb6a89ac82dd90ee4331efa8c8e756325f5 Mon Sep 17 00:00:00 2001 From: Tom Hu Date: Wed, 19 Feb 2025 18:03:59 -0300 Subject: [PATCH 08/32] fix: update deps --- tests/requirements.in | 2 ++ tests/requirements.txt | 12 ++++++++---- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/tests/requirements.in b/tests/requirements.in index f8bc663ac..79ede29cd 100644 --- a/tests/requirements.in +++ b/tests/requirements.in @@ -1,3 +1,5 @@ +packaging>=24.2 # to not conflict with setuptools-scm +pyyaml>=6.0.2 pre-commit pytest pytest-asyncio diff --git a/tests/requirements.txt b/tests/requirements.txt index 87478a950..9407c032f 100644 --- a/tests/requirements.txt +++ b/tests/requirements.txt @@ -18,8 +18,10 @@ iniconfig==2.0.0 # via pytest nodeenv==1.8.0 # via pre-commit -packaging==23.2 - # via pytest +packaging==24.2 + # via + # -r requirements.in + # pytest platformdirs==3.11.0 # via virtualenv pluggy==1.3.0 @@ -41,8 +43,10 @@ pytest-env==1.1.0 # via -r requirements.in pytest-mock==3.11.1 # via -r requirements.in -pyyaml==6.0.1 - # via pre-commit +pyyaml==6.0.2 + # via + # -r requirements.in + # pre-commit virtualenv==20.26.6 # via pre-commit From 510e6d61b7b67b3ccb9b57617e6985ab207514b6 Mon Sep 17 00:00:00 2001 From: Tom Hu Date: Wed, 19 Feb 2025 18:06:31 -0300 Subject: [PATCH 09/32] fix: update pytest command --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 88ee92154..0cbd93c60 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -43,7 +43,7 @@ packages = ["codecov_cli"] [tool.cibuildwheel] before-test = "pip install -r tests/requirements.txt" skip = "pp*" -test-command = "pytest" +test-command = "pytest codecov-cli" [tool.cibuildwheel.config-settings] pure-python = "false" From 591fe7cf2ad2a3aafe11dc50769cd3755c047ff6 Mon Sep 17 00:00:00 2001 From: Tom Hu Date: Wed, 19 Feb 2025 18:08:28 -0300 Subject: [PATCH 10/32] fix: underscore --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 0cbd93c60..4cf22c44d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -43,7 +43,7 @@ packages = ["codecov_cli"] [tool.cibuildwheel] before-test = "pip install -r tests/requirements.txt" skip = "pp*" -test-command = "pytest codecov-cli" +test-command = "pytest codecov_cli" [tool.cibuildwheel.config-settings] pure-python = "false" From bc7cc9a3262619bbac30d151ba4150d5d44d348e Mon Sep 17 00:00:00 2001 From: Tom Hu Date: Wed, 19 Feb 2025 23:15:14 -0300 Subject: [PATCH 11/32] fix: use tests dir --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 4cf22c44d..12a2d1586 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -43,7 +43,7 @@ packages = ["codecov_cli"] [tool.cibuildwheel] before-test = "pip install -r tests/requirements.txt" skip = "pp*" -test-command = "pytest codecov_cli" +test-command = "pytest tests" [tool.cibuildwheel.config-settings] pure-python = "false" From c705cdebabdf70dfb867adbcfb92194f76150652 Mon Sep 17 00:00:00 2001 From: Tom Hu Date: Wed, 19 Feb 2025 23:17:23 -0300 Subject: [PATCH 12/32] fix: ls --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 12a2d1586..bd1083dc7 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -41,7 +41,7 @@ env = [ packages = ["codecov_cli"] [tool.cibuildwheel] -before-test = "pip install -r tests/requirements.txt" +before-test = "pip install -r tests/requirements.txt; ls */*/*" skip = "pp*" test-command = "pytest tests" From 2ae276cb424a84ce1762c38531512032dcc38544 Mon Sep 17 00:00:00 2001 From: Tom Hu Date: Wed, 19 Feb 2025 23:19:19 -0300 Subject: [PATCH 13/32] fix: use dot --- pyproject.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index bd1083dc7..df6bc029f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -41,9 +41,9 @@ env = [ packages = ["codecov_cli"] [tool.cibuildwheel] -before-test = "pip install -r tests/requirements.txt; ls */*/*" +before-test = "pip install -r tests/requirements.txt" skip = "pp*" -test-command = "pytest tests" +test-command = "pytest ." [tool.cibuildwheel.config-settings] pure-python = "false" From 57d63d44e8906a81f942ebb734333f264b6652ac Mon Sep 17 00:00:00 2001 From: Tom Hu Date: Wed, 19 Feb 2025 23:22:40 -0300 Subject: [PATCH 14/32] fix: use more path --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index df6bc029f..ead5ee002 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -43,7 +43,7 @@ packages = ["codecov_cli"] [tool.cibuildwheel] before-test = "pip install -r tests/requirements.txt" skip = "pp*" -test-command = "pytest ." +test-command = "pytest codecov-cli/tests" [tool.cibuildwheel.config-settings] pure-python = "false" From 781a7c60e9612064f9bdb3384973cfef3b6cb87a Mon Sep 17 00:00:00 2001 From: Tom Hu Date: Wed, 19 Feb 2025 23:24:43 -0300 Subject: [PATCH 15/32] fix: ls -al --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index ead5ee002..8c6ca69bb 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -41,7 +41,7 @@ env = [ packages = ["codecov_cli"] [tool.cibuildwheel] -before-test = "pip install -r tests/requirements.txt" +before-test = "pip install -r tests/requirements.txt; ls -al" skip = "pp*" test-command = "pytest codecov-cli/tests" From 74a0b767c48d6af77325409f5e758d4d73e93be5 Mon Sep 17 00:00:00 2001 From: Tom Hu Date: Wed, 19 Feb 2025 23:27:40 -0300 Subject: [PATCH 16/32] fix: use literal {package} --- pyproject.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 8c6ca69bb..5328ee65f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -41,9 +41,9 @@ env = [ packages = ["codecov_cli"] [tool.cibuildwheel] -before-test = "pip install -r tests/requirements.txt; ls -al" +before-test = "pip install -r tests/requirements.txt" skip = "pp*" -test-command = "pytest codecov-cli/tests" +test-command = "pytest {package}" [tool.cibuildwheel.config-settings] pure-python = "false" From 143743a8563a2b6a42acd3b7df3b3b21fe993684 Mon Sep 17 00:00:00 2001 From: Tom Hu Date: Wed, 19 Feb 2025 23:34:12 -0300 Subject: [PATCH 17/32] fix: add scripts to tests --- MANIFEST.in | 1 + pyproject.toml | 1 + 2 files changed, 2 insertions(+) diff --git a/MANIFEST.in b/MANIFEST.in index 4a14cb427..e0bbc1dc8 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -4,3 +4,4 @@ include requirements.txt recursive-include codecov_cli * recursive-include tests * +recursive-include samples * diff --git a/pyproject.toml b/pyproject.toml index 5328ee65f..31c128255 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -42,6 +42,7 @@ packages = ["codecov_cli"] [tool.cibuildwheel] before-test = "pip install -r tests/requirements.txt" +environment = {} skip = "pp*" test-command = "pytest {package}" From be1f2fdca009866bb1824104b79a8e6d44344390 Mon Sep 17 00:00:00 2001 From: Tom Hu Date: Wed, 19 Feb 2025 23:35:44 -0300 Subject: [PATCH 18/32] fix: remove dupe --- .github/workflows/test_build_for_pypi.yml | 31 ----------------------- pyproject.toml | 1 - 2 files changed, 32 deletions(-) delete mode 100644 .github/workflows/test_build_for_pypi.yml diff --git a/.github/workflows/test_build_for_pypi.yml b/.github/workflows/test_build_for_pypi.yml deleted file mode 100644 index 745a094e0..000000000 --- a/.github/workflows/test_build_for_pypi.yml +++ /dev/null @@ -1,31 +0,0 @@ ---- -name: Test Build and Optionally Publish to PyPi - -on: - pull_request: - branches: main - -jobs: - build_src_for_pypi: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - with: - persist-credentials: false - submodules: true - - name: Install dependencies - run: | - pip install build - - name: ls - run: | - ls */*/* - - name: Build src dist - run: | - python -m build --sdist - env: - PIP_CONSTRAINT: requirements.txt - - name: Store the distribution packages - uses: actions/upload-artifact@v4 - with: - name: cibw-sdist - path: ./**/*.tar.gz diff --git a/pyproject.toml b/pyproject.toml index 31c128255..5328ee65f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -42,7 +42,6 @@ packages = ["codecov_cli"] [tool.cibuildwheel] before-test = "pip install -r tests/requirements.txt" -environment = {} skip = "pp*" test-command = "pytest {package}" From ac8175a1594a5ee87eaa82d3f5280c06afcae0ee Mon Sep 17 00:00:00 2001 From: Tom Hu Date: Wed, 19 Feb 2025 23:45:01 -0300 Subject: [PATCH 19/32] fix: use project --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 5328ee65f..8a7b617bf 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -43,7 +43,7 @@ packages = ["codecov_cli"] [tool.cibuildwheel] before-test = "pip install -r tests/requirements.txt" skip = "pp*" -test-command = "pytest {package}" +test-command = "pytest {project}" [tool.cibuildwheel.config-settings] pure-python = "false" From 80cb5d143dcb01b13862456f6b103071ee311126 Mon Sep 17 00:00:00 2001 From: Tom Hu Date: Wed, 19 Feb 2025 23:56:07 -0300 Subject: [PATCH 20/32] fix: run codecovcli --- pyproject.toml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 8a7b617bf..d045180a8 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -41,9 +41,8 @@ env = [ packages = ["codecov_cli"] [tool.cibuildwheel] -before-test = "pip install -r tests/requirements.txt" skip = "pp*" -test-command = "pytest {project}" +test-command = "codecovcli -v upload-coverage -Z" [tool.cibuildwheel.config-settings] pure-python = "false" From bc85829c9096fa3ae208b08211cfe2d6d68a0208 Mon Sep 17 00:00:00 2001 From: Tom Hu Date: Wed, 19 Feb 2025 23:59:33 -0300 Subject: [PATCH 21/32] fix: empty upload --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index d045180a8..097ab605f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -42,7 +42,7 @@ packages = ["codecov_cli"] [tool.cibuildwheel] skip = "pp*" -test-command = "codecovcli -v upload-coverage -Z" +test-command = "codecovcli -v empty-upload" [tool.cibuildwheel.config-settings] pure-python = "false" From a3b166b58005330eb9b4f1520b0f43162de17f61 Mon Sep 17 00:00:00 2001 From: Tom Hu Date: Thu, 20 Feb 2025 00:02:26 -0300 Subject: [PATCH 22/32] fix: just help --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 097ab605f..69afa081d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -42,7 +42,7 @@ packages = ["codecov_cli"] [tool.cibuildwheel] skip = "pp*" -test-command = "codecovcli -v empty-upload" +test-command = "codecovcli --help" [tool.cibuildwheel.config-settings] pure-python = "false" From 54d2161c3334a36e28df57510a77f7eddbab950a Mon Sep 17 00:00:00 2001 From: Tom Hu Date: Thu, 20 Feb 2025 11:02:31 -0300 Subject: [PATCH 23/32] fix: try it again --- .github/workflows/build_for_pypi.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/build_for_pypi.yml b/.github/workflows/build_for_pypi.yml index 3a599367b..5aee94e74 100644 --- a/.github/workflows/build_for_pypi.yml +++ b/.github/workflows/build_for_pypi.yml @@ -12,6 +12,7 @@ on: description: "Build for PyPi" jobs: + build_src_for_pypi: runs-on: ubuntu-latest steps: From 311f22151b07d95b145dead41641222c8f6f9cf7 Mon Sep 17 00:00:00 2001 From: Tom Hu Date: Thu, 20 Feb 2025 12:44:07 -0300 Subject: [PATCH 24/32] fix: skip 3.13 --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 69afa081d..15d4d6a42 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -41,7 +41,7 @@ env = [ packages = ["codecov_cli"] [tool.cibuildwheel] -skip = "pp*" +skip = ["pp*", "cp313-*"] test-command = "codecovcli --help" [tool.cibuildwheel.config-settings] From 43b65deaae19bf31eb71c07694d2b71aae745bf9 Mon Sep 17 00:00:00 2001 From: Tom Hu Date: Thu, 20 Feb 2025 12:46:28 -0300 Subject: [PATCH 25/32] fix: add list_relevant_files stub --- codecov_cli/helpers/versioning_systems.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/codecov_cli/helpers/versioning_systems.py b/codecov_cli/helpers/versioning_systems.py index 6b38f1d8a..60cee5b5a 100644 --- a/codecov_cli/helpers/versioning_systems.py +++ b/codecov_cli/helpers/versioning_systems.py @@ -149,6 +149,9 @@ class NoVersioningSystem(VersioningSystemInterface): def is_available(cls): return True + def list_relevant_files(self, directory: t.Optional[Path] = None) -> t.List[str]: + return [] + def get_network_root(self): return Path.cwd() From 8e1204643bd49d676b8f1373f5277ecfd8d5a12e Mon Sep 17 00:00:00 2001 From: Tom Hu Date: Thu, 20 Feb 2025 13:33:15 -0300 Subject: [PATCH 26/32] fix: move requirements file --- .github/workflows/build_assets.yml | 4 +- .github/workflows/ci-job.yml | 2 +- .github/workflows/ci.yml | 6 +- MANIFEST.in | 1 - README.md | 8 +- .../requirements.txt | 0 codecovcli_commands | 79 +------------------ pyproject.toml | 2 +- scripts/build_alpine_arm.sh | 4 +- scripts/build_linux_arm.sh | 2 +- 10 files changed, 16 insertions(+), 92 deletions(-) rename requirements.txt => codecov_cli/requirements.txt (100%) diff --git a/.github/workflows/build_assets.yml b/.github/workflows/build_assets.yml index 53b55dc78..ec93205b3 100644 --- a/.github/workflows/build_assets.yml +++ b/.github/workflows/build_assets.yml @@ -34,7 +34,7 @@ jobs: - os: ubuntu-20.04 TARGET: ubuntu CMD_REQS: > - pip install -r requirements.txt && pip install . + pip install -r codecov_cli/requirements.txt && pip install . CMD_BUILD: > STATICCODECOV_LIB_PATH=$(find build/ -maxdepth 1 -type d -name 'lib.*' -print -quit | xargs -I {} sh -c "find {} -type f -name 'staticcodecov*' -print -quit | sed 's|^./||'") && pyinstaller --add-binary ${STATICCODECOV_LIB_PATH}:. --copy-metadata codecov-cli --hidden-import staticcodecov_languages -F codecov_cli/main.py && @@ -44,7 +44,7 @@ jobs: - os: windows-latest TARGET: windows CMD_REQS: > - pip install -r requirements.txt && pip install . + pip install -r codecov_cli/requirements.txt && pip install . CMD_BUILD: > pyinstaller --add-binary "build\lib.win-amd64-cpython-311\staticcodecov_languages.cp311-win_amd64.pyd;." --copy-metadata codecov-cli --hidden-import staticcodecov_languages -F codecov_cli\main.py && Copy-Item -Path ".\dist\main.exe" -Destination ".\dist\codecovcli_windows.exe" diff --git a/.github/workflows/ci-job.yml b/.github/workflows/ci-job.yml index cea929f54..e5e80d4bf 100644 --- a/.github/workflows/ci-job.yml +++ b/.github/workflows/ci-job.yml @@ -24,7 +24,7 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip - pip install -r requirements.txt + pip install -r codecov_cli/requirements.txt python -m pip install -e . pip install -r tests/requirements.txt - name: Test with pytest diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 672b2a2ba..6812dc1aa 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -35,7 +35,7 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip - pip install -r requirements.txt + pip install -r codecov_cli/requirements.txt python -m pip install -e . - name: Run command_dump run: | @@ -92,7 +92,7 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip - pip install -r requirements.txt + pip install -r codecov_cli/requirements.txt python -m pip install -e . pip install -r tests/requirements.txt - name: Test with pytest @@ -127,7 +127,7 @@ jobs: - name: Install dependencies for Dogfooding run: | python -m pip install --upgrade pip - pip install -r requirements.txt + pip install -r codecov_cli/requirements.txt python -m pip install -e . pip install -r tests/requirements.txt - name: Download all test results diff --git a/MANIFEST.in b/MANIFEST.in index e0bbc1dc8..6e03f623b 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -1,6 +1,5 @@ include languages/treesitterjavascript/src/tree_sitter/parser.h include languages/treesitterpython/src/tree_sitter/parser.h -include requirements.txt recursive-include codecov_cli * recursive-include tests * diff --git a/README.md b/README.md index 3f94fe2e6..8641fa122 100644 --- a/README.md +++ b/README.md @@ -98,10 +98,10 @@ The following tokens are suitable for uploading: * The [Repository Upload Token](https://docs.codecov.com/docs/codecov-uploader#upload-token): Found on the settings page of your repository, also viewable on the `/new` page when setting up a repository on Codecov for the first time. * The [Global Upload Token](https://docs.codecov.com/docs/codecov-uploader#organization-upload-token): Found on your organization settings page (e.g., `https://app.codecov.io/account///org-upload-token`). -# Usage -If the installation is successful, running `codecovcli --help` will output the available commands along with the different general options that can be used with them. +# Usage +If the installation is successful, running `codecovcli --help` will output the available commands along with the different general options that can be used with them. -> [!IMPORTANT] +> [!IMPORTANT] > For up-to-date command usage, please check the `codecovcli_commands` [file](https://github.com/codecov/codecov-cli/blob/main/codecovcli_commands) ``` @@ -299,7 +299,7 @@ git submodule update --init ``` Then, install dependencies with ``` -pip install -r requirements.txt +pip install -r codecov_cli/requirements.txt python -m pip install --editable . ``` diff --git a/requirements.txt b/codecov_cli/requirements.txt similarity index 100% rename from requirements.txt rename to codecov_cli/requirements.txt diff --git a/codecovcli_commands b/codecovcli_commands index 932cc7423..ac907950b 100644 --- a/codecovcli_commands +++ b/codecovcli_commands @@ -6,7 +6,6 @@ Options: -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. @@ -22,7 +21,6 @@ Commands: process-test-results send-notifications static-analysis - upload-coverage upload-process Usage: codecovcli create-commit [OPTIONS] @@ -117,7 +115,7 @@ Options: -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 + --handle-no-reports-found Raise no excpetions when no coverage reports found. --report-type [coverage|test_results] The type of the file to upload, coverage by @@ -248,79 +246,6 @@ Options: upload) [required] -h, --help Show this message and exit. -Usage: codecovcli 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 - --code, --report-code TEXT The code of the report. If unsure, leave - default - --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. - --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 mannually. - 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: codecovcli upload-process [OPTIONS] Options: @@ -371,7 +296,7 @@ Options: -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 + --handle-no-reports-found Raise no excpetions when no coverage reports found. --report-type [coverage|test_results] The type of the file to upload, coverage by diff --git a/pyproject.toml b/pyproject.toml index 15d4d6a42..79013d2db 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -48,4 +48,4 @@ test-command = "codecovcli --help" pure-python = "false" [tool.cibuildwheel.environment] -PIP_CONSTRAINT = "requirements.txt" +PIP_CONSTRAINT = "codecov_cli/requirements.txt" diff --git a/scripts/build_alpine_arm.sh b/scripts/build_alpine_arm.sh index 1c220bac9..8dd0a3fba 100755 --- a/scripts/build_alpine_arm.sh +++ b/scripts/build_alpine_arm.sh @@ -1,9 +1,9 @@ #!/bin/sh apk add musl-dev build-base -pip install -r requirements.txt +pip install -r codecov_cli/requirements.txt pip install . python setup.py build STATICCODECOV_LIB_PATH=$(find build/ -maxdepth 1 -type d -name 'lib.*' -print -quit | xargs -I {} sh -c "find {} -type f -name 'staticcodecov*' -print -quit | sed 's|^./||'") pip install pyinstaller pyinstaller --add-binary ${STATICCODECOV_LIB_PATH}:. --copy-metadata codecov-cli --hidden-import staticcodecov_languages -F codecov_cli/main.py -cp ./dist/main ./dist/codecovcli_$1 \ No newline at end of file +cp ./dist/main ./dist/codecovcli_$1 diff --git a/scripts/build_linux_arm.sh b/scripts/build_linux_arm.sh index 58b4625fc..7dc8b75e0 100755 --- a/scripts/build_linux_arm.sh +++ b/scripts/build_linux_arm.sh @@ -1,6 +1,6 @@ #!/bin/sh apt install build-essential -pip install -r requirements.txt +pip install -r codecov_cli/requirements.txt pip install . python setup.py build STATICCODECOV_LIB_PATH=$(find build/ -maxdepth 1 -type d -name 'lib.*' -print -quit | xargs -I {} sh -c "find {} -type f -name 'staticcodecov*' -print -quit | sed 's|^./||'") From 3e07406cb56258e3e9f58d37926ef23e450ec59d Mon Sep 17 00:00:00 2001 From: Tom Hu Date: Thu, 20 Feb 2025 13:44:01 -0300 Subject: [PATCH 27/32] fix: update req location for sdist --- .github/workflows/build_for_pypi.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build_for_pypi.yml b/.github/workflows/build_for_pypi.yml index 5aee94e74..2e84ad870 100644 --- a/.github/workflows/build_for_pypi.yml +++ b/.github/workflows/build_for_pypi.yml @@ -27,7 +27,7 @@ jobs: run: | python -m build --sdist env: - PIP_CONSTRAINT: requirements.txt + PIP_CONSTRAINT: codecov_cli/requirements.txt - name: Store the distribution packages uses: actions/upload-artifact@v4 with: From ae51197eb7215bfa2795c129cdc1b397a42ca44b Mon Sep 17 00:00:00 2001 From: Tom Hu Date: Thu, 20 Feb 2025 13:51:55 -0300 Subject: [PATCH 28/32] fix: make requirements not top-level --- .github/workflows/build_assets.yml | 4 ++-- .github/workflows/build_for_pypi.yml | 2 +- .github/workflows/ci-job.yml | 2 +- .github/workflows/ci.yml | 6 +++--- README.md | 2 +- pyproject.toml | 2 +- codecov_cli/requirements.txt => requirements.txt | 0 scripts/build_alpine_arm.sh | 2 +- scripts/build_linux_arm.sh | 2 +- 9 files changed, 11 insertions(+), 11 deletions(-) rename codecov_cli/requirements.txt => requirements.txt (100%) diff --git a/.github/workflows/build_assets.yml b/.github/workflows/build_assets.yml index ec93205b3..53b55dc78 100644 --- a/.github/workflows/build_assets.yml +++ b/.github/workflows/build_assets.yml @@ -34,7 +34,7 @@ jobs: - os: ubuntu-20.04 TARGET: ubuntu CMD_REQS: > - pip install -r codecov_cli/requirements.txt && pip install . + pip install -r requirements.txt && pip install . CMD_BUILD: > STATICCODECOV_LIB_PATH=$(find build/ -maxdepth 1 -type d -name 'lib.*' -print -quit | xargs -I {} sh -c "find {} -type f -name 'staticcodecov*' -print -quit | sed 's|^./||'") && pyinstaller --add-binary ${STATICCODECOV_LIB_PATH}:. --copy-metadata codecov-cli --hidden-import staticcodecov_languages -F codecov_cli/main.py && @@ -44,7 +44,7 @@ jobs: - os: windows-latest TARGET: windows CMD_REQS: > - pip install -r codecov_cli/requirements.txt && pip install . + pip install -r requirements.txt && pip install . CMD_BUILD: > pyinstaller --add-binary "build\lib.win-amd64-cpython-311\staticcodecov_languages.cp311-win_amd64.pyd;." --copy-metadata codecov-cli --hidden-import staticcodecov_languages -F codecov_cli\main.py && Copy-Item -Path ".\dist\main.exe" -Destination ".\dist\codecovcli_windows.exe" diff --git a/.github/workflows/build_for_pypi.yml b/.github/workflows/build_for_pypi.yml index 2e84ad870..5aee94e74 100644 --- a/.github/workflows/build_for_pypi.yml +++ b/.github/workflows/build_for_pypi.yml @@ -27,7 +27,7 @@ jobs: run: | python -m build --sdist env: - PIP_CONSTRAINT: codecov_cli/requirements.txt + PIP_CONSTRAINT: requirements.txt - name: Store the distribution packages uses: actions/upload-artifact@v4 with: diff --git a/.github/workflows/ci-job.yml b/.github/workflows/ci-job.yml index e5e80d4bf..cea929f54 100644 --- a/.github/workflows/ci-job.yml +++ b/.github/workflows/ci-job.yml @@ -24,7 +24,7 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip - pip install -r codecov_cli/requirements.txt + pip install -r requirements.txt python -m pip install -e . pip install -r tests/requirements.txt - name: Test with pytest diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6812dc1aa..672b2a2ba 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -35,7 +35,7 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip - pip install -r codecov_cli/requirements.txt + pip install -r requirements.txt python -m pip install -e . - name: Run command_dump run: | @@ -92,7 +92,7 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip - pip install -r codecov_cli/requirements.txt + pip install -r requirements.txt python -m pip install -e . pip install -r tests/requirements.txt - name: Test with pytest @@ -127,7 +127,7 @@ jobs: - name: Install dependencies for Dogfooding run: | python -m pip install --upgrade pip - pip install -r codecov_cli/requirements.txt + pip install -r requirements.txt python -m pip install -e . pip install -r tests/requirements.txt - name: Download all test results diff --git a/README.md b/README.md index 8641fa122..b459aa8e7 100644 --- a/README.md +++ b/README.md @@ -299,7 +299,7 @@ git submodule update --init ``` Then, install dependencies with ``` -pip install -r codecov_cli/requirements.txt +pip install -r requirements.txt python -m pip install --editable . ``` diff --git a/pyproject.toml b/pyproject.toml index 79013d2db..15d4d6a42 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -48,4 +48,4 @@ test-command = "codecovcli --help" pure-python = "false" [tool.cibuildwheel.environment] -PIP_CONSTRAINT = "codecov_cli/requirements.txt" +PIP_CONSTRAINT = "requirements.txt" diff --git a/codecov_cli/requirements.txt b/requirements.txt similarity index 100% rename from codecov_cli/requirements.txt rename to requirements.txt diff --git a/scripts/build_alpine_arm.sh b/scripts/build_alpine_arm.sh index 8dd0a3fba..688c3ab09 100755 --- a/scripts/build_alpine_arm.sh +++ b/scripts/build_alpine_arm.sh @@ -1,6 +1,6 @@ #!/bin/sh apk add musl-dev build-base -pip install -r codecov_cli/requirements.txt +pip install -r requirements.txt pip install . python setup.py build STATICCODECOV_LIB_PATH=$(find build/ -maxdepth 1 -type d -name 'lib.*' -print -quit | xargs -I {} sh -c "find {} -type f -name 'staticcodecov*' -print -quit | sed 's|^./||'") diff --git a/scripts/build_linux_arm.sh b/scripts/build_linux_arm.sh index 7dc8b75e0..58b4625fc 100755 --- a/scripts/build_linux_arm.sh +++ b/scripts/build_linux_arm.sh @@ -1,6 +1,6 @@ #!/bin/sh apt install build-essential -pip install -r codecov_cli/requirements.txt +pip install -r requirements.txt pip install . python setup.py build STATICCODECOV_LIB_PATH=$(find build/ -maxdepth 1 -type d -name 'lib.*' -print -quit | xargs -I {} sh -c "find {} -type f -name 'staticcodecov*' -print -quit | sed 's|^./||'") From 5bcf2a0b988b8009f3a2fd40912a31b5fdd30ab1 Mon Sep 17 00:00:00 2001 From: Tom Hu Date: Thu, 20 Feb 2025 14:28:47 -0300 Subject: [PATCH 29/32] fix: add requirements.txt to MANIFEST --- MANIFEST.in | 1 + codecovcli_commands | 79 +++++++++++++++++++++++++++++++++++++++++++-- 2 files changed, 78 insertions(+), 2 deletions(-) diff --git a/MANIFEST.in b/MANIFEST.in index 6e03f623b..e0bbc1dc8 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -1,5 +1,6 @@ include languages/treesitterjavascript/src/tree_sitter/parser.h include languages/treesitterpython/src/tree_sitter/parser.h +include requirements.txt recursive-include codecov_cli * recursive-include tests * diff --git a/codecovcli_commands b/codecovcli_commands index ac907950b..932cc7423 100644 --- a/codecovcli_commands +++ b/codecovcli_commands @@ -6,6 +6,7 @@ Options: -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. @@ -21,6 +22,7 @@ Commands: process-test-results send-notifications static-analysis + upload-coverage upload-process Usage: codecovcli create-commit [OPTIONS] @@ -115,7 +117,7 @@ Options: -d, --dry-run Don't upload files to Codecov --legacy, --use-legacy-uploader Use the legacy upload endpoint - --handle-no-reports-found Raise no excpetions when no coverage reports + --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 @@ -246,6 +248,79 @@ Options: upload) [required] -h, --help Show this message and exit. +Usage: codecovcli 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 + --code, --report-code TEXT The code of the report. If unsure, leave + default + --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. + --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 mannually. + 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: codecovcli upload-process [OPTIONS] Options: @@ -296,7 +371,7 @@ Options: -d, --dry-run Don't upload files to Codecov --legacy, --use-legacy-uploader Use the legacy upload endpoint - --handle-no-reports-found Raise no excpetions when no coverage reports + --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 From 7057c41cea4b47bb1150b99593ac65ea64148a87 Mon Sep 17 00:00:00 2001 From: Tom Hu <88201630+thomasrockhu-codecov@users.noreply.github.com> Date: Thu, 20 Feb 2025 17:21:29 -0300 Subject: [PATCH 30/32] Update codecov_cli/helpers/versioning_systems.py --- codecov_cli/helpers/versioning_systems.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/codecov_cli/helpers/versioning_systems.py b/codecov_cli/helpers/versioning_systems.py index 60cee5b5a..6b38f1d8a 100644 --- a/codecov_cli/helpers/versioning_systems.py +++ b/codecov_cli/helpers/versioning_systems.py @@ -149,9 +149,6 @@ class NoVersioningSystem(VersioningSystemInterface): def is_available(cls): return True - def list_relevant_files(self, directory: t.Optional[Path] = None) -> t.List[str]: - return [] - def get_network_root(self): return Path.cwd() From 300df65d3c13d4076d65315279e621a7fb71d6f9 Mon Sep 17 00:00:00 2001 From: Tom Hu <88201630+thomasrockhu-codecov@users.noreply.github.com> Date: Thu, 20 Feb 2025 17:21:43 -0300 Subject: [PATCH 31/32] Update codecov_cli/services/upload/network_finder.py --- codecov_cli/services/upload/network_finder.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/codecov_cli/services/upload/network_finder.py b/codecov_cli/services/upload/network_finder.py index 8b1a728d5..0bf1aee31 100644 --- a/codecov_cli/services/upload/network_finder.py +++ b/codecov_cli/services/upload/network_finder.py @@ -18,7 +18,7 @@ def __init__( self.network_root_folder = network_root_folder def find_files(self, ignore_filters=False) -> typing.List[str]: - files = self.versioning_system.list_relevant_files(self.network_root_folder) or [] + files = self.versioning_system.list_relevant_files(self.network_root_folder) if files and not ignore_filters: if self.network_filter: From 7cdfd6835c8e13dbc92adffebb2a0634f24fbb12 Mon Sep 17 00:00:00 2001 From: Tom Hu Date: Thu, 20 Feb 2025 17:22:27 -0300 Subject: [PATCH 32/32] fix: remove false --- .github/workflows/build_for_pypi.yml | 2 -- .github/workflows/release_flow.yml | 1 - 2 files changed, 3 deletions(-) diff --git a/.github/workflows/build_for_pypi.yml b/.github/workflows/build_for_pypi.yml index 5aee94e74..72a4456ae 100644 --- a/.github/workflows/build_for_pypi.yml +++ b/.github/workflows/build_for_pypi.yml @@ -2,8 +2,6 @@ name: Build for PyPi on: - pull_request: - branches: main workflow_call: inputs: publish: diff --git a/.github/workflows/release_flow.yml b/.github/workflows/release_flow.yml index 75fa2a288..c0e43bdbb 100644 --- a/.github/workflows/release_flow.yml +++ b/.github/workflows/release_flow.yml @@ -51,7 +51,6 @@ jobs: find . -empty -type d -delete ls -alrt */* - name: Publish package to PyPi - if: false uses: pypa/gh-action-pypi-publish@release/v1 with: verbose: true