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.
Over multiple tests with pytest-xdist using the flag -n auto.
Drawbacks:
Parallelizing the tests changes the console output for the test workflow, since intermediate results cannot be shown until all tests have completed.
We can parallelize the test workflow in 2 ways:
tox
to parallelize environments.pytest-xdist
using the flag-n auto
.Drawbacks: