Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 34 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# Generated by simit. Manual edits will be reported as ci=drift.
name: CI

on:
push:
branches: ["**"]
tags-ignore: ["**"]
pull_request:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
test:
runs-on: ubuntu-latest
env:
NIX_CONFIG: "experimental-features = nix-command flakes"
XDG_CACHE_HOME: "/tmp/.cache"
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Install Nix
uses: cachix/install-nix-action@v31

- name: Check generated flake wiring
run: nix run git+https://codeberg.org/caniko/simit.git -- init flake --check --diff

- name: Check flake evaluation
run: nix flake check --no-build

- name: Build check pytest
run: nix build .#checks.x86_64-linux.pytest
106 changes: 0 additions & 106 deletions .github/workflows/ci.yml

This file was deleted.

1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ docs/superpowers/
.vscode/
.kilo
openspec/
result
# Local benchmark scripts — never commit
scripts/run_k2_*.py
scripts/llm.py
Expand Down
46 changes: 46 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ Every system ran on the same harness with the same model and budgets, scored by
| Python | 3.10+ | `python --version` | [python.org](https://www.python.org/downloads/) |
| uv *(recommended)* | any | `uv --version` | `curl -LsSf https://astral.sh/uv/install.sh \| sh` |
| pipx *(alternative)* | any | `pipx --version` | `pip install pipx` |
| Nix *(alternative)* | 2.4+ (flakes enabled) | `nix --version` | [nixos.org](https://nixos.org/download/) |

**macOS quick install (Homebrew):**
```bash
Expand Down Expand Up @@ -163,6 +164,51 @@ pipx install graphifyy
pip install graphifyy # may need PATH setup — see note below
```

**Nix (flake):**

Run directly without installing:
```bash
nix run github:caniko/graphify
```

To expose `graphify` as a package inside another flake, add it as an input and reference its default package:
```nix
{
inputs = {
graphify.url = "github:caniko/graphify";
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
};

outputs = { nixpkgs, graphify, ... }: {
let
system = "x86_64-linux";
pkgs = nixpkgs.legacyPackages.${system};
in {
devShells.${system}.default = pkgs.mkShell {
buildInputs = [ graphify.packages.${system}.default ];
};
};
};
}
```

The flake and GitHub Actions workflow are generated and checked by
[simit](https://codeberg.org/caniko/simit). After changing the flake outputs,
refresh the generated wiring and verify the same checks CI runs:

```bash
simit init flake --check --diff
simit init ci --platform github --runtime nix --check --diff
nix flake check --no-build
nix build .#checks.x86_64-linux.pytest
```

Keep `simit.toml`, `nix/pre-commit.nix`, and `.github/workflows/ci.yaml` in
sync; the workflow intentionally builds the named `pytest` check instead of
duplicating a second Python dependency installation path.

---

**Step 2 — register the skill with your AI assistant:**

```bash
Expand Down
120 changes: 120 additions & 0 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading