Skip to content

Commit

Permalink
Upload coverage for doctests
Browse files Browse the repository at this point in the history
  • Loading branch information
eivindjahren committed Jan 10, 2024
1 parent 881a350 commit 86d4550
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
9 changes: 8 additions & 1 deletion .github/workflows/doctest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
4 changes: 2 additions & 2 deletions codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 86d4550

Please sign in to comment.