tools
tools copied to clipboard
Speed up pytest with parallelization
Description of feature
pytest-xdist should do the job (just need to add -n auto
). Tested it locally and throws errors because of git errors due to parallel actions (because we use the same git repo for the moduoles cache for test_modules
, test_subworkflow
, test_components
.
One option would be be with --dist=loadgroup
and grouping the different git operations together with @pytest.mark.xdist_group(name="group1")