Rewrite GitHub Actions job matrices to avoid repetition #3518
Labels
difficulty: easy
A good issue for someone new. Can be done in a few hours
priority: low
No existing plans to resolve
The
test_on_push.yml
workflow file is slightly long (420+ lines) because there is a lot of repetition of job steps across parallel jobs. The jobs can be refactored into a single job that produces a three-dimensional matrix to run them in parallel. This way, one can write most (related jobs) with extra steps based on certain conditions and avoid repeated job configurations. The trio of unit tests + integration + coverage tests and the pair of example scripts + example notebooks checks would be sufficient for this purpose.See https://docs.github.com/en/actions/using-jobs/using-a-matrix-for-your-jobs#example-expanding-configurations for more details. Note that it would require re-naming the jobs accordingly.
The text was updated successfully, but these errors were encountered: