stefanradev93 / BayesFlow

A Python library for amortized Bayesian workflows using generative neural networks.
https://bayesflow.org/
MIT License
286 stars 45 forks source link

Parallelize Test Workflows #131

Closed LarsKue closed 5 months ago

LarsKue commented 5 months ago

We can parallelize the test workflow in 2 ways:

  1. Over multiple environments (i.e., python versions). This can be done either via parallelization directly in the github workflow, or we can tell tox to parallelize environments.
  2. Over multiple tests with pytest-xdist using the flag -n auto.

Drawbacks:

LarsKue commented 5 months ago

Done! Tests now run in approximately 8 instead of 18 minutes :partying_face:

stefanradev93 commented 5 months ago

That's awesome!