-
Notifications
You must be signed in to change notification settings - Fork 0
102 lines (82 loc) · 2.82 KB
/
ci.yml
File metadata and controls
102 lines (82 loc) · 2.82 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
name: CI
on:
push:
branches: [main, master]
pull_request:
workflow_dispatch:
permissions:
contents: read
concurrency:
group: ci-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
test:
name: Python ${{ matrix.python-version }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.10", "3.11", "3.12"]
steps:
- name: Check out repository
uses: actions/checkout@v6
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python-version }}
cache: pip
- name: Install package
run: |
python -m pip install --upgrade pip
python -m pip install -e ".[dev]"
- name: Run tests
run: python -m pytest --basetemp .pytest_tmp_run
- name: Remove pytest scratch output
if: always()
run: rm -rf .pytest_tmp_run
- name: Ruff
run: ruff check .
- name: Import-layer contract
run: lint-imports
- name: Forge wire
run: python -m atomadic_forge.a4_sy_orchestration.cli wire src/atomadic_forge --json
- name: Forge command smoke
run: python -m atomadic_forge.a4_sy_orchestration.cli commandsmith smoke --json
- name: Forge self-certify (BEP self-hosting proof — gate at 100/100)
run: |
python -m atomadic_forge.a4_sy_orchestration.cli certify . --json --fail-under 100 > certify_self.json
python -c "import json, sys; d = json.load(open('certify_self.json')); s = d['score']; print(f'forge self-certify: {s}/100 (components: {d[\"score_components\"]})'); sys.exit(0 if s >= 100 else 1)"
- name: Upload self-certify report
if: always()
uses: actions/upload-artifact@v7
with:
name: forge-certify-self-${{ matrix.python-version }}
path: certify_self.json
if-no-files-found: ignore
package:
name: Build package
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v6
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: "3.12"
cache: pip
- name: Build distributions
run: |
python -m pip install --upgrade pip
python -m pip install build twine
python -m build
python -m twine check dist/*
- name: Upload distributions
uses: actions/upload-artifact@v7
with:
name: atomadic-forge-dist
path: dist/*
# v0.49.0+ — the canonical metrics gate now lives in
# .github/workflows/metrics-drift.yml using `forge metrics --apply`
# against the live TOOLS dict. The legacy scripts/update_metrics.py
# ships only the propagation helper for site repos; it is no longer
# the gate.