Skip to content

GitLab CI

View as Markdown

Add a job to .gitlab-ci.yml to check your repository’s YAML. On a runner with the Docker executor, the Python image can install the prebuilt oxyaml wheel from PyPI.

check-yaml:
image: python:3.13-slim
script:
- python -m pip install oxyaml
- oxyaml check .

The job fails when oxyaml reports an error. For other installation methods, see Installation.