Skip to content

README: humanize Why + Design choices, drop AI-clean parallelism #2

README: humanize Why + Design choices, drop AI-clean parallelism

README: humanize Why + Design choices, drop AI-clean parallelism #2

Workflow file for this run

name: tests
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
pytest:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.11", "3.12", "3.13"]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: pip
- run: pip install -r requirements-dev.txt
- run: pip install -e .
- run: pytest tests/ -v
- name: End-to-end demo
run: |
python -m slo_toolkit --spec examples/payments-api.yml --out-dir build/
test -s build/payments-api-slos.yml
test -s build/payments-api-dashboard.json
- name: Validate generated rules with promtool
run: |
# promtool ships with prometheus; install the upstream binary
curl -sLO https://github.com/prometheus/prometheus/releases/download/v2.55.1/prometheus-2.55.1.linux-amd64.tar.gz
tar xzf prometheus-2.55.1.linux-amd64.tar.gz
./prometheus-2.55.1.linux-amd64/promtool check rules build/payments-api-slos.yml