- flake.nix: add ruff and pyright to packages.default nativeCheckInputs and preCheck so nix build / nix flake check enforce lint, types, and pytest in the Nix sandbox - .githooks/pre-commit: keep local pre-commit hook fast (<0.5s) running ruff, pyright, and pytest - .gitea/workflows/ci.yaml: run nix flake check on push and pull_request to main - AGENTS.md: document .githooks/pre-commit, @pytest.mark.xfail(strict=True) Red-phase rule, and .gitea/workflows/ci.yaml expectations
28 lines
743 B
YAML
28 lines
743 B
YAML
name: Core Architecture & Invariant CI
|
|
|
|
on:
|
|
push:
|
|
branches: [ main ]
|
|
pull_request:
|
|
branches: [ main ]
|
|
|
|
jobs:
|
|
validate:
|
|
runs-on: ubuntu-latest
|
|
container:
|
|
image: nixery.dev/shell/coreutils/git/nix/nodejs:latest
|
|
steps:
|
|
- name: Check out repository
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Configure Git Safe Directory & Nix Flakes
|
|
run: |
|
|
git config --global --add safe.directory "$GITHUB_WORKSPACE"
|
|
mkdir -p ~/.config/nix
|
|
echo "experimental-features = nix-command flakes" >> ~/.config/nix/nix.conf
|
|
echo "build-users-group =" >> ~/.config/nix/nix.conf
|
|
|
|
- name: Run Architecture & Security Invariant Checks
|
|
run: |
|
|
nix flake check
|