diff --git a/.github/workflows/doctest.yml b/.github/workflows/doctest.yml index a756826add1..1eb072a621c 100644 --- a/.github/workflows/doctest.yml +++ b/.github/workflows/doctest.yml @@ -32,4 +32,11 @@ jobs: run: | # dark storage assumes it is a started service so cannot be excuded # by pytest blindly - pytest --doctest-modules src/ --ignore src/ert/dark_storage + pytest --doctest-modules --cov=ert --cov-report=xml:cov.xml src/ --ignore src/ert/dark_storage + + - name: Upload coverage to Codecov + uses: codecov/codecov-action@v3 + with: + token: ${{ secrets.CODECOV_TOKEN }} + fail_ci_if_error: true + files: cov.xml diff --git a/codecov.yml b/codecov.yml index 9bdf1bdd7e1..af4e4617996 100644 --- a/codecov.yml +++ b/codecov.yml @@ -2,6 +2,6 @@ fixes: - "*/site-packages/::" - "/home/runner/work/ert/ert/::" comment: - # The code coverage is made up of 4 test runs so only after all coverage + # The code coverage is made up of 5 test runs so only after all coverage # reports have been uploaded will the comparison be sane - after_n_builds: 4 + after_n_builds: 5