pyhf
pyhf copied to clipboard
Parallelize testing to speed up CI
Summary
The CI is a bit slow at the moment (most runs take over 18 minutes to complete). Parallelizing the testing with pytest-split would help and could potentially bring things down below 10 minutes.
Note that pytest-split is an individual's project, and using the pytest-dev supported pytest-xdist is maybe a better long term plan.
Additional Information
The idea of using pytest-split comes from searching and finding the 2020 blog Blazing fast CI with pytest-split and GitHub Actions which demos the usage in the example project https://github.com/jerry-git/pytest-split-gh-actions-demo.
Code of Conduct
- [X] I agree to follow the Code of Conduct
Hynek is trying to get this working for attrs (https://github.com/python-attrs/attrs/pull/1011) so hopefully he has some luck there that we can copy in the future.