-
Notifications
You must be signed in to change notification settings - Fork 364
96 lines (75 loc) · 2.92 KB
/
Copy pathci.yml
File metadata and controls
96 lines (75 loc) · 2.92 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
name: ci
on: [push, pull_request]
jobs:
lint:
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Set up Python 3.9
uses: actions/setup-python@v6
with:
python-version: "3.9"
cache: "pip"
cache-dependency-path: "setup.py"
- name: Install Python dependencies
run: |
python3 -m pip install setuptools pytest
- name: Check README Board List
run: python3 .github/scripts/sync_readme_boards_list.py --check
- name: Check Target Parser Style
run: python3 .github/scripts/check_target_parser_style.py
- name: Check Target Parser Alignment
run: python3 .github/scripts/check_target_parser_alignment.py
- name: Check Board Inventory
run: python3 .github/scripts/generate_board_inventory.py --check
- name: Check Board Consistency
run: python3 .github/scripts/audit_board_consistency.py --check
- name: Run Fast Lint Tests
run: python3 -m pytest -q test/test_parser_style.py test/test_parser_alignment.py test/test_targets_parser_api.py test/test_board_guardrails.py
build:
needs: lint
runs-on: ubuntu-22.04
steps:
# Checkout Repository
- name: Checkout
uses: actions/checkout@v6
# Install Tools
- name: Install Tools
run: |
sudo apt-get install wget build-essential
- name: Set up Python 3.9
uses: actions/setup-python@v6
with:
python-version: "3.9"
cache: "pip"
cache-dependency-path: "setup.py"
- name: Install Python dependencies
run: |
python3 -m pip install setuptools requests pexpect meson pytest
# Install (n)Migen / LiteX / Cores
- name: Install LiteX
run: |
wget https://raw.githubusercontent.com/enjoy-digital/litex/master/litex_setup.py
python3 litex_setup.py init install --user
# Install Project
- name: Install Project
run: python3 setup.py develop --user
# Validate README board list is in sync with targets.
- name: Check README Board List
run: python3 .github/scripts/sync_readme_boards_list.py --check
# Validate parser style in targets.
- name: Check Target Parser Style
run: python3 .github/scripts/check_target_parser_style.py
# Validate parser argument alignment in targets.
- name: Check Target Parser Alignment
run: python3 .github/scripts/check_target_parser_alignment.py
# Validate generated board inventory and consistency baseline.
- name: Check Board Guardrails
run: |
python3 .github/scripts/generate_board_inventory.py --check
python3 .github/scripts/audit_board_consistency.py --check
python3 .github/scripts/check_stale_board_exclusions.py --check
# Test
- name: Run Tests
run: python3 -m pytest -v