ESMValGroup / ESMValCore

ESMValCore: A community tool for pre-processing data from Earth system models in CMIP and running analysis scripts.
https://www.esmvaltool.org
Apache License 2.0
40 stars 36 forks source link

Disable collecting test coverage by default #2456

Open bouweandela opened 1 month ago

bouweandela commented 1 month ago

Description

Collecting code coverage is time consuming. Disable it by default and enable it on request by running pytest --cov. This will save some time when developing locally and also reduces the runtime of the GitHub Actions tests by about 1 (Linux) to 2 (OSX) minutes.

Link to documentation: https://esmvaltool--2456.org.readthedocs.build/projects/ESMValCore/en/2456/contributing.html#test-coverage


Before you get started

Checklist

It is the responsibility of the author to make sure the pull request is ready to review. The icons indicate whether the item will be subject to the ๐Ÿ›  Technical or ๐Ÿงช Scientific review.


To help with the number pull requests:

codecov[bot] commented 1 month ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 94.62%. Comparing base (4102388) to head (7ef0796).

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #2456 +/- ## ======================================= Coverage 94.62% 94.62% ======================================= Files 246 246 Lines 14055 14055 ======================================= Hits 13299 13299 Misses 756 756 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.