From 88e94aa53a165a8acf0987decac6a49d29a7c53a Mon Sep 17 00:00:00 2001 From: ruthra kumar Date: Tue, 2 Dec 2025 17:28:49 +0530 Subject: [PATCH] ci: code coverage action --- .github/workflows/server-tests-mariadb.yml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/.github/workflows/server-tests-mariadb.yml b/.github/workflows/server-tests-mariadb.yml index c24c647a8cf..2d8821728ac 100644 --- a/.github/workflows/server-tests-mariadb.yml +++ b/.github/workflows/server-tests-mariadb.yml @@ -128,10 +128,9 @@ jobs: FRAPPE_BRANCH: ${{ github.event.client_payload.sha || github.event.inputs.branch }} - name: Run Tests - run: 'cd ~/frappe-bench/ && bench --site test_site run-parallel-tests --app erpnext --total-builds ${{ strategy.job-total }} --build-number ${{ matrix.container }}' + run: 'cd ~/frappe-bench/ && bench --site test_site run-parallel-tests --app erpnext --total-builds ${{ strategy.job-total }} --build-number ${{ matrix.container }} --with-coverage' env: TYPE: server - CAPTURE_COVERAGE: ${{ github.event_name != 'pull_request' }} - name: Show bench output @@ -140,7 +139,6 @@ jobs: - name: Upload coverage data uses: actions/upload-artifact@v4 - if: github.event_name != 'pull_request' with: name: coverage-${{ matrix.container }} path: /home/runner/frappe-bench/sites/coverage.xml @@ -149,7 +147,6 @@ jobs: name: Coverage Wrap Up needs: test runs-on: ubuntu-latest - if: ${{ github.event_name != 'pull_request' }} steps: - name: Clone uses: actions/checkout@v4