diff --git a/.github/renovate.json b/.github/renovate.json new file mode 100644 index 0000000..9c37a61 --- /dev/null +++ b/.github/renovate.json @@ -0,0 +1,21 @@ +{ + "$schema": "https://docs.renovatebot.com/renovate-schema.json", + "extends": [ + "config:recommended" + ], + "nix": { + "enabled": true + }, + "packageRules": [ + { + "description": "Group GitHub Actions updates into a single PR", + "matchManagers": ["github-actions"], + "groupName": "github-actions" + }, + { + "description": "Group Nix flake input updates into a single PR", + "matchManagers": ["nix"], + "groupName": "nix-flake-inputs" + } + ] +} diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..ddaf6e5 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,39 @@ +name: CI + +on: + push: + branches: [master] + pull_request: + branches: [master] + +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true + +jobs: + lint: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v7 + - uses: astral-sh/setup-uv@v8.2.0 + - run: uv run ruff check . + - run: uv run ty check + + build-tartarus: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v7 + - uses: DeterminateSystems/nix-installer-action@v22 + - uses: DeterminateSystems/magic-nix-cache-action@v14 + - uses: astral-sh/setup-uv@v8.2.0 + - run: nix flake check + - run: uv run pytest + - run: nix build .#tartarus --no-link --print-out-paths + + build-agent: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v7 + - uses: DeterminateSystems/nix-installer-action@v22 + - uses: DeterminateSystems/magic-nix-cache-action@v14 + - run: nix build .#agents.x86_64-linux.default.bundle --no-link --print-out-paths