Tutorial examples¶
The tutorial track is the fastest way to learn how foga.yml grows from a
minimal config into a more complete workflow definition. Read these examples in
order. Each step adds one new idea without changing the overall project shape
more than necessary.
Tutorial ladder¶
01-python-onlystarts with the smallest runnablefogaproject: validate a config, install development dependencies, and build a Python package.02-pybind11-helloadds a first native extension and separates the C++ build from the Python package build.03-pybind11-testsadds Python and C++ test workflows together with formatting and linting.04-pybind11-profilesadds profile-driven build modes so one base config can express more than one workflow variant.
How to run the tutorials¶
Docker is the easiest way to run the tutorial examples because it avoids installing example-specific toolchains on your machine.
From the repository root:
python examples/tutorial/run-tutorial.py --list
python examples/tutorial/run-tutorial.py 01-python-only
You can also run a tutorial locally after installing the prerequisites listed in the README for that specific example.
After the tutorials¶
Once the tutorial sequence makes sense, move on to the real-world examples based on the kind of repository you want to model: