README: humanize Why + Design choices, drop AI-clean parallelism #2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |