From f95b62a6a6cfd41c1ae280174bddc5c4bbcd8d0e Mon Sep 17 00:00:00 2001 From: Jannat Patel Date: Mon, 8 Dec 2025 15:23:18 +0530 Subject: [PATCH] chore: configured codecov for CI --- .github/workflows/ci.yml | 26 +++++++++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 45f69ea9..2a8eb28f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -77,4 +77,28 @@ jobs: run: bench --site frappe.local build - name: run tests working-directory: /home/runner/frappe-bench - run: bench --site frappe.local run-tests --app lms \ No newline at end of file + run: bench --site frappe.local run-tests --app lms + - name: Upload coverage data + uses: actions/upload-artifact@v4 + with: + name: coverage-${{ matrix.container }} + path: /home/runner/frappe-bench/sites/coverage.xml + + coverage: + name: Coverage Wrap Up + needs: tests + runs-on: ubuntu-latest + steps: + - name: Clone + uses: actions/checkout@v3 + + - name: Download artifacts + uses: actions/download-artifact@v4 + + - name: Upload coverage data + uses: codecov/codecov-action@v5 + with: + name: Server + token: ${{ secrets.CODECOV_TOKEN }} + fail_ci_if_error: true + verbose: true \ No newline at end of file