Build matrix
A CI configuration that runs tests across multiple combinations of environment, language version, or platform.
A build matrix is a two-dimensional table — rows for Python 3.10, 3.11, 3.12 and columns for Ubuntu, macOS, Windows. The CI system then creates N×M jobs: Python 3.10 on Ubuntu, 3.10 on macOS, 3.11 on Ubuntu, and so on. This guarantees the code works across the diversity of environments users actually have.
GitHub Actions, GitLab CI, and Travis CI all support matrix builds through simple YAML directives. It's standard practice for open-source projects supporting multiple Python versions or operating systems simultaneously without manually writing N separate job definitions.