diff --git a/.github/workflows/pytest.yaml b/.github/workflows/pytest.yaml index 2df05b9d..a0ec25db 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: @@ -88,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: 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