-
Notifications
You must be signed in to change notification settings - Fork 4
47 lines (37 loc) · 1.17 KB
/
Copy pathci.yml
File metadata and controls
47 lines (37 loc) · 1.17 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
name: CI
on:
push:
branches: [main]
pull_request:
permissions:
contents: read
concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true
jobs:
validate:
name: Lint and test
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v7
- name: Install uv
# setup-uv stopped publishing floating major tags after v7, so this
# pins the full version; actions/checkout still maintains a v7 tag.
uses: astral-sh/setup-uv@v10.0.0
with:
enable-cache: true
- name: Sync dependencies
run: uv sync
- name: Lint
run: uv run ruff check .
- name: Check formatting
run: uv run ruff format --check .
# The hooks are the enforced guardrails, and shell quoting bugs in them
# have shipped before. Warning severity skips style nitpicks.
- name: Shellcheck hooks
run: shellcheck --severity=warning .claude/hooks/*.sh
# Runs each hook script for real against crafted payloads. shellcheck
# catches shell mistakes; these catch wrong decisions.
- name: Test hook behaviour
run: uv run pytest