strategy matrix

A job setting that expands one job description into one job for every combination of the listed values.

In more detail

Listing three versions and two operating systems gives six jobs, each on its own runner. A step reads its own combination from the matrix context, and each expanded job is named with its values in brackets, which matters for required checks.

Example

strategy:
  matrix:
    version: ["3.10", "3.11", "3.12"]
    os: [ubuntu-latest, macos-latest]

Related terms

Taught in

References

Certification courses