diff --git a/.github/codecov.yml b/.github/codecov.yml index 108be847..3e28b84a 100644 --- a/.github/codecov.yml +++ b/.github/codecov.yml @@ -18,3 +18,9 @@ comment: layout: "reach,diff,flags,files,footer" behavior: default require_changes: no + +ignore: + - "third_party/" + - "tests/" + - "include/neug/compiler/" + - "src/compiler/" \ No newline at end of file diff --git a/.github/workflows/neug-test.yml b/.github/workflows/neug-test.yml index ad6353d2..f780b599 100644 --- a/.github/workflows/neug-test.yml +++ b/.github/workflows/neug-test.yml @@ -406,10 +406,10 @@ jobs: sudo apt install lcov -y cd ${GITHUB_WORKSPACE}/tools/python_bind/build/neug_py_bind make coverage - mv coverage_filtered.info coverage.info - name: Upload coverage to Codecov if: steps.scope.outputs.extension_only != 'true' && (github.ref == 'refs/heads/main' && github.repository == 'alibaba/neug' && github.event_name == 'push') - uses: codecov/codecov-action@v4 + uses: codecov/codecov-action@v5 with: - file: ${{ github.workspace }}/tools/python_bind/build/neug_py_bind/coverage.info + token: ${{ secrets.CODECOV_TOKEN }} + file: ${{ github.workspace }}/tools/python_bind/build/neug_py_bind/coverage_filtered.info