harmont-cli 0.0.8

Command-line client for the Harmont CI platform.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
"""Elixir CI pipeline."""
from __future__ import annotations

import harmont as hm


@hm.pipeline(
    "ci",
    env={"CI": "true", "MIX_ENV": "test"},
    triggers=[hm.push(branch="main")],
)
def ci() -> tuple[hm.Step, ...]:
    project = hm.elixir(path=".")
    return (
        project.compile(),
        project.test(),
        project.format(),
    )