-
Notifications
You must be signed in to change notification settings - Fork 3
141 lines (121 loc) · 3.81 KB
/
nightly.yml
File metadata and controls
141 lines (121 loc) · 3.81 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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
name: Nightly
on:
schedule:
- cron: "0 3 * * *" # 3 AM UTC daily
workflow_dispatch:
jobs:
full-test-suite:
name: Full Test Suite
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: pip install -e ".[dev]"
- name: Run all tests with coverage
run: pytest tests/ --cov=ebuild --cov-report=xml -v --tb=short -m "not qemu"
board-matrix:
name: Board Target Validation (${{ matrix.board }})
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
board:
- generic
- stm32f4
- stm32h7
- nrf52
- rp2040
- tms570
- raspi4
- esp32
- am64x
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: "3.12"
- name: Install ebuild
run: pip install -e .
- name: Validate board target
run: |
python -c "
from ebuild.eos_ai.eos_hw_analyzer import EosHardwareAnalyzer
analyzer = EosHardwareAnalyzer()
board = '${{ matrix.board }}'
if board != 'generic':
profile = analyzer.interpret_text(f'{board} board')
print(f'Board: {board}')
print(f'MCU: {profile.mcu}')
print(f'Arch: {profile.arch}')
print(f'Core: {profile.core}')
else:
print('Board: generic (host)')
print('✅ Board target validated')
"
qemu-smoke:
name: QEMU Smoke Tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install QEMU
run: |
sudo apt-get update
sudo apt-get install -y qemu-system-arm qemu-system-aarch64 qemu-system-riscv64 qemu-system-mips
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: "3.12"
- name: Install dependencies
run: pip install -e ".[dev]"
- name: Run QEMU tests
run: pytest tests/ -v -m "qemu" --tb=short
continue-on-error: true
sbom-validation:
name: SBOM Validation
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Validate SBOM
run: |
python -c "
import json
with open('sbom.json') as f:
sbom = json.load(f)
assert 'bomFormat' in sbom, 'Missing bomFormat'
assert sbom['bomFormat'] == 'CycloneDX', 'Not CycloneDX format'
print(f'SBOM version: {sbom.get(\"specVersion\", \"unknown\")}')
print(f'Components: {len(sbom.get(\"components\", []))}')
print('✅ SBOM validation passed')
"
lockfile-check:
name: Package Lockfile Consistency
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: "3.12"
- name: Install ebuild
run: pip install -e .
- name: Validate package pipeline
run: |
python -c "
from ebuild.packages.registry import PackageRegistry
from ebuild.packages.recipe import PackageRecipe
registry = PackageRegistry()
registry.add_search_path('recipes')
count = registry.scan()
print(f'Recipes found: {count}')
for pkg in registry.list_packages():
print(f' {pkg.name} {pkg.version} ({pkg.build_system})')
print('✅ Package registry validation passed')
"