equinor / xtgeo

XTGeo Python class library for subsurface Surfaces, Cubes, Wells, Grids, Points, etc
https://xtgeo.readthedocs.io/en/latest/
GNU Lesser General Public License v3.0
109 stars 56 forks source link

TST: Set MPLBACKEND=Agg on test invocations #1154

Closed mferrera closed 5 months ago

mferrera commented 5 months ago

We do not need to use a gui method of plotting for test runs, and other backends may fail on CI.

The previous solution of setting the environment variable did not work: despite numerous other ways of setting this, Windows seems to ignore it and continues to use TkAgg over Agg, causing sporadic failures in CI.

codecov-commenter commented 5 months ago

Codecov Report

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

Comparison is base (90dea77) 80.29% compared to head (47941c0) 80.29%.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #1154 +/- ## ======================================= Coverage 80.29% 80.29% ======================================= Files 97 97 Lines 13547 13547 Branches 2172 2172 ======================================= Hits 10878 10878 Misses 1949 1949 Partials 720 720 ```

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