From df61f460d74d4a3e2affa06d491088ff710c816c Mon Sep 17 00:00:00 2001 From: Ishwarya Date: Tue, 10 Feb 2026 18:00:04 +0530 Subject: [PATCH 1/6] Fixed Coverage report issue --- pyproject.toml | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index fa9d66e9..69f4e20c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -24,7 +24,19 @@ requires = ["poetry-core"] build-backend = "poetry.core.masonry.api" [tool.pytest.ini_options] -addopts = "--cov=beam --cov-report term-missing" +addopts = "--cov=beam --cov-report=term-missing --cov-report=xml" + +[tool.coverage.run] +omit = [ + "*/__init__.py", + "*/boot.py", + "*/customize.py", + "*/hooks.py", + "*/install.py", + "*/patches/*", + "*/tests/*", + "*/test_*.py", +] [tool.codespell] skip = "CHANGELOG.md,*.js.map" From e9954882c4cf970e7b93e75bf59a2cde38787b48 Mon Sep 17 00:00:00 2001 From: Ishwarya Date: Tue, 10 Feb 2026 18:09:55 +0530 Subject: [PATCH 2/6] Fixed Pytest failure --- .github/workflows/pytest.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/pytest.yaml b/.github/workflows/pytest.yaml index 2df05b9d..356f1978 100644 --- a/.github/workflows/pytest.yaml +++ b/.github/workflows/pytest.yaml @@ -78,6 +78,8 @@ jobs: MYSQL_PWD: 'admin' BRANCH_NAME: ${{ env.BRANCH_NAME}} run: | + source /home/runner/frappe-bench/env/bin/activate + pip install --upgrade pip setuptools bash ${{ github.workspace }}/.github/helper/install.sh - name: Run Tests From 41f534fd8e0ef4e463bfb8b9fc195f5254951b62 Mon Sep 17 00:00:00 2001 From: Ishwarya Date: Thu, 12 Feb 2026 18:45:18 +0530 Subject: [PATCH 3/6] Added setup tools dependancy --- .github/workflows/pytest.yaml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/pytest.yaml b/.github/workflows/pytest.yaml index 356f1978..42d4f187 100644 --- a/.github/workflows/pytest.yaml +++ b/.github/workflows/pytest.yaml @@ -71,6 +71,7 @@ jobs: - name: Install App Dependencies run: bash ${{ github.workspace }}/.github/helper/install_dependencies.sh + pip install setuptools - name: Install Bench Site and Apps env: @@ -78,8 +79,6 @@ jobs: MYSQL_PWD: 'admin' BRANCH_NAME: ${{ env.BRANCH_NAME}} run: | - source /home/runner/frappe-bench/env/bin/activate - pip install --upgrade pip setuptools bash ${{ github.workspace }}/.github/helper/install.sh - name: Run Tests From 699afcf1540eae9dd7ba065b09caf93464fb675c Mon Sep 17 00:00:00 2001 From: Ishwarya Date: Thu, 12 Feb 2026 19:00:54 +0530 Subject: [PATCH 4/6] Configure coverage to ignore 0 line files --- .github/workflows/pytest.yaml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/pytest.yaml b/.github/workflows/pytest.yaml index 42d4f187..a0ec25db 100644 --- a/.github/workflows/pytest.yaml +++ b/.github/workflows/pytest.yaml @@ -89,6 +89,14 @@ jobs: poetry install pytest --cov=beam --cov-report=xml --disable-warnings -s | tee pytest-coverage.txt + - name: Filter Coverage Report + working-directory: /home/runner/frappe-bench/apps/beam + run: | + python ${{ github.workspace }}/.github/scripts/filter_coverage.py \ + pytest-coverage.txt \ + filtered-coverage.txt \ + 1 + - name: Pytest coverage comment uses: MishaKav/pytest-coverage-comment@main with: From 52d482c77d3e4a23766df1a134be01d157d134a7 Mon Sep 17 00:00:00 2001 From: Ishwarya Date: Thu, 12 Feb 2026 19:04:06 +0530 Subject: [PATCH 5/6] Reverted pyproject.toml file change --- .pre-commit-config.yaml | 2 +- pyproject.toml | 14 +------------- 2 files changed, 2 insertions(+), 14 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index e77ac14d..8aad4420 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -55,7 +55,7 @@ repos: - tomli - repo: https://github.com/agritheory/test_utils - rev: v1.13.0 + rev: v1.14.0 hooks: - id: update_pre_commit_config - id: validate_copyright diff --git a/pyproject.toml b/pyproject.toml index 69f4e20c..6e486bbf 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -24,19 +24,7 @@ requires = ["poetry-core"] build-backend = "poetry.core.masonry.api" [tool.pytest.ini_options] -addopts = "--cov=beam --cov-report=term-missing --cov-report=xml" - -[tool.coverage.run] -omit = [ - "*/__init__.py", - "*/boot.py", - "*/customize.py", - "*/hooks.py", - "*/install.py", - "*/patches/*", - "*/tests/*", - "*/test_*.py", -] +addopts = "--cov=beam --cov-report=term-missing" [tool.codespell] skip = "CHANGELOG.md,*.js.map" From 2beb43440377c4263dcbfb46d6983d6ff58600df Mon Sep 17 00:00:00 2001 From: Ishwarya Date: Thu, 12 Feb 2026 19:05:22 +0530 Subject: [PATCH 6/6] Fixed small bug --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 6e486bbf..fa9d66e9 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -24,7 +24,7 @@ requires = ["poetry-core"] build-backend = "poetry.core.masonry.api" [tool.pytest.ini_options] -addopts = "--cov=beam --cov-report=term-missing" +addopts = "--cov=beam --cov-report term-missing" [tool.codespell] skip = "CHANGELOG.md,*.js.map"