optimagic-dev / optimagic

optimagic is a Python package for numerical optimization. It is a unified interface to optimizers from SciPy, NlOpt and other packages. optimagic's minimize function works just like SciPy's, so you don't have to adjust your code. You simply get more optimizers for free. On top you get diagnostic tools, parallel numerical derivatives and more.
https://optimagic.readthedocs.io/
MIT License
266 stars 30 forks source link

Analyze code coverage of numba-jitted functions #447

Open timmens opened 1 year ago

timmens commented 1 year ago

What would you like to enhance and why? Is it related to an issue/problem?

Currently numba-jitted functions are ignored by codecov. To get a better understanding of the coverage of our code base we also want to learn about the coverage jitted functions.

Describe the solution you'd like

Disable numba-jitting on the runner / python-version that uploads the code coverage, but not on the others. The environment variable that has to be set is:

export NUMBA_DISABLE_JIT=1

Problems

Running the test-suite results in errors when JIT is disabled.