-
Notifications
You must be signed in to change notification settings - Fork 15
69 lines (58 loc) · 2.24 KB
/
Copy pathtest-modelmaker.yml
File metadata and controls
69 lines (58 loc) · 2.24 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
name: Tests
on:
push:
branches: [platypus_dev_1.3, main]
paths:
- 'tinyml-modelmaker/**'
- '.github/workflows/test-modelmaker.yml'
pull_request:
branches: [platypus_dev_1.3, main]
paths:
- 'tinyml-modelmaker/**'
workflow_dispatch: # manual trigger
jobs:
test:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
runs-on: ${{ matrix.os }}
name: Tests (${{ matrix.os }})
# Windows support is experimental — don't block the overall run
continue-on-error: ${{ matrix.os == 'windows-latest' }}
defaults:
run:
shell: bash
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Python 3.10
uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: Install dependencies
run: |
python -m pip install --upgrade pip setuptools wheel
pip install -e tinyml-modelzoo
pip install -e tinyml-tinyverse
pip install -e "tinyml-modeloptimization/torchmodelopt"
pip install -e tinyml-modelmaker --no-deps
pip install defusedxml==0.7.1 "numpy==2.2.6" "PyYAML==6.0.3" "tqdm==4.67.1" "requests==2.32.5" "torch==2.7.1"
pip install pytest
- name: Install ti_mcu_nnc (Linux only)
if: runner.os == 'Linux'
run: |
pip install "ti_mcu_nnc @ https://software-dl.ti.com/mctools/esd/tvm/mcu/ti_mcu_nnc-2.1.1-cp310-cp310-linux_x86_64.whl" || true
- name: Install ti_mcu_nnc (Windows only)
if: runner.os == 'Windows'
run: |
pip install "ti_mcu_nnc @ https://software-dl.ti.com/mctools/esd/tvm/mcu/ti_mcu_nnc-2.1.1-cp310-cp310-win_amd64.whl" || true
- name: Tier 1 — Component Tests
working-directory: tinyml-modelmaker
run: python -m pytest tests/test_model_registry.py tests/test_config_validation.py -v --tb=short
- name: Tier 3 — Cross-Device Validation
working-directory: tinyml-modelmaker
run: python -m pytest tests/test_cross_device.py -v --tb=short
- name: Tier 2 — Pipeline Smoke Tests
working-directory: tinyml-modelmaker
run: python -m pytest tests/test_pipeline_smoke.py -v --tb=short