Hi @hiker and welcome to our developer’s forum!
You can reuse parts of configs by packing them as orbs. Orbs are reusable YAML snippets. You can see more information about orbs here: https://circleci.com/orbs/
So for example, CircleCI provides a Python orb that allows users to simply import jobs, commands, and executors instead of writing their own for common Python tasks. To use and reuse a test command, you could just import the orb then use the job as follows:
The orb is actually named “circleci/python” with a version number. Then it’s aliased with a key, in this case “python”. You can then use the orb key to reference jobs (
python/test) or executors (
While this is one of CircleCI’s certified orbs, you can author your own orb with the help of the orb development kit.