-
Notifications
You must be signed in to change notification settings - Fork 0
59 lines (54 loc) · 1.58 KB
/
Copy pathci.yml
File metadata and controls
59 lines (54 loc) · 1.58 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
55
56
57
58
59
name: CI
# Gates per PR type (see docs/pr-taxonomy.md):
# docs: lint
# structural: lint + self-check
# behavior: lint + test + self-check (test-traceability and tasks-complete run inside self-check)
on:
push:
branches: [main]
tags: ["v*"]
pull_request:
branches: [main]
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: astral-sh/setup-uv@v5
with:
python-version: "3.12"
- run: uv sync --group dev
- run: uv run ruff check .
- run: uv run ruff format --check .
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.12", "3.13"]
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: astral-sh/setup-uv@v5
with:
python-version: ${{ matrix.python-version }}
- run: uv sync --group dev
- name: Run tests with AC traceability markers
run: uv run pytest -v --tb=short
self-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: astral-sh/setup-uv@v5
with:
python-version: "3.12"
- run: uv sync --group dev
- name: Self-check (fail on errors, allow warnings)
# Exit 0 = all pass, 1 = advisory warnings only, 2 = hard failure.
# Covers: agents-exists, spec-ac-ids, test-traceability, tasks-complete,
# change-archived, secrets, and all other ci-enforced checks.
run: uv run iec check || [ $? -le 1 ]