Skip to content

Commit 5cb469e

Browse files
authored
chore: bare-minimum ci.yml to isolate startup failure (#42)
1 parent a7fa6bf commit 5cb469e

1 file changed

Lines changed: 2 additions & 110 deletions

File tree

.github/workflows/ci.yml

Lines changed: 2 additions & 110 deletions
Original file line numberDiff line numberDiff line change
@@ -1,121 +1,13 @@
11
name: CI
22

3-
# Action SHAs are pinned, not floating tags. To bump:
4-
# gh api repos/<owner>/<repo>/commits/<tag> --jq .sha
5-
# (use /commits/<tag>, NOT /git/refs/tags/<tag> — annotated tags would
6-
# return the tag-object SHA, which Actions can't resolve.)
7-
# Update the comment on the right with the new tag for traceability.
8-
93
on:
104
push:
115
branches: [develop, main]
126
pull_request:
137
branches: [develop, main]
148

159
jobs:
16-
lint:
17-
name: Lint & Format
18-
runs-on: ubuntu-latest
19-
steps:
20-
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
21-
- uses: astral-sh/setup-uv@d4b2f3b6ecc6e67c4457f6d3e41ec42d3d0fcb86 # v5
22-
- uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5
23-
with:
24-
python-version: "3.14"
25-
- run: uv sync --frozen --extra dev
26-
- run: uv run ruff check .
27-
- run: uv run ruff format --check .
28-
29-
typecheck:
30-
name: Type Check
31-
runs-on: ubuntu-latest
32-
steps:
33-
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
34-
- uses: astral-sh/setup-uv@d4b2f3b6ecc6e67c4457f6d3e41ec42d3d0fcb86 # v5
35-
- uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5
36-
with:
37-
python-version: "3.14"
38-
- run: uv sync --frozen --extra dev
39-
- run: uv run mypy --strict src/ tests/
40-
41-
test-unit:
42-
name: Unit tests
43-
runs-on: ubuntu-latest
44-
steps:
45-
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
46-
- uses: astral-sh/setup-uv@d4b2f3b6ecc6e67c4457f6d3e41ec42d3d0fcb86 # v5
47-
- uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5
48-
with:
49-
python-version: "3.14"
50-
- run: uv sync --frozen --extra dev
51-
- run: uv run pytest tests/ -v -m "not integration" -o "addopts="
52-
53-
coverage:
54-
name: Coverage
55-
runs-on: ubuntu-latest
56-
# Runs the full suite with coverage. Until ticket #17 lands real source
57-
# under src/, the template has no measurable coverage; pyproject.toml's
58-
# [tool.coverage.report].fail_under stays at 75 (the eventual target),
59-
# while CI uses --cov-fail-under=0 so the empty scaffold doesn't fail.
60-
steps:
61-
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
62-
- uses: astral-sh/setup-uv@d4b2f3b6ecc6e67c4457f6d3e41ec42d3d0fcb86 # v5
63-
- uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5
64-
with:
65-
python-version: "3.14"
66-
- run: uv sync --frozen --extra dev
67-
- run: uv run pytest tests/ --cov=src --cov-report=term-missing --cov-fail-under=0
68-
69-
architecture:
70-
name: Architecture (import-linter)
71-
runs-on: ubuntu-latest
72-
steps:
73-
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
74-
- uses: astral-sh/setup-uv@d4b2f3b6ecc6e67c4457f6d3e41ec42d3d0fcb86 # v5
75-
- uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5
76-
with:
77-
python-version: "3.14"
78-
- run: uv sync --frozen --extra dev
79-
- run: uv run lint-imports
80-
81-
pre-commit:
82-
name: Pre-commit
83-
runs-on: ubuntu-latest
84-
steps:
85-
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
86-
- uses: astral-sh/setup-uv@d4b2f3b6ecc6e67c4457f6d3e41ec42d3d0fcb86 # v5
87-
- uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5
88-
with:
89-
python-version: "3.14"
90-
- run: uv sync --frozen --extra dev
91-
- run: uv run pre-commit run --all-files --show-diff-on-failure
92-
93-
frontend-build:
94-
name: Frontend Build
95-
runs-on: ubuntu-latest
96-
if: hashFiles('frontend/package.json') != ''
97-
steps:
98-
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
99-
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6
100-
with:
101-
node-version: "24"
102-
cache: npm
103-
cache-dependency-path: frontend/package-lock.json
104-
- run: cd frontend && npm ci && npm run build
105-
106-
frontend-quality:
107-
name: Frontend Quality
10+
hello:
10811
runs-on: ubuntu-latest
109-
if: hashFiles('frontend/package.json') != ''
11012
steps:
111-
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
112-
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6
113-
with:
114-
node-version: "24"
115-
cache: npm
116-
cache-dependency-path: frontend/package-lock.json
117-
- run: cd frontend && npm ci
118-
- run: cd frontend && npm run lint
119-
- run: cd frontend && npm run format:check
120-
- run: cd frontend && npm run check
121-
- run: cd frontend && npm run test
13+
- run: echo "hello"

0 commit comments

Comments
 (0)