-
Notifications
You must be signed in to change notification settings - Fork 0
54 lines (48 loc) · 1.4 KB
/
ci.yml
File metadata and controls
54 lines (48 loc) · 1.4 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
48
49
50
51
52
53
54
name: CI
on:
push:
branches: [main]
pull_request:
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: astral-sh/setup-uv@v4
with:
python-version: "3.13"
- run: cd app/cli && uv sync && uv run ruff check .
test-cli:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: astral-sh/setup-uv@v4
with:
python-version: "3.13"
- run: cd app/cli && uv sync && uv run pytest -v
test-entrypoint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install ShellSpec
run: curl -fsSL https://git.io/shellspec | sh -s -- -y
- run: cd config && shellspec --shell bash
dockerfile-lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: hadolint/hadolint-action@v3.1.0
with:
dockerfile: config/Dockerfile
failure-threshold: error
- uses: hadolint/hadolint-action@v3.1.0
with:
dockerfile: config/Dockerfile.wolfi
failure-threshold: error
docker-build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: docker/setup-buildx-action@v3
- name: Build Alpine image (builder stage only — runtime requires glibc for Claude CLI)
run: docker build --target=builder -f config/Dockerfile -t stackai:ci-test config/