47 lines
1.3 KiB
YAML
47 lines
1.3 KiB
YAML
name: Performance & HIL
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
pull_request:
|
|
branches: [main]
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
performance:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- name: Run firmware benchmarks
|
|
run: |
|
|
mkdir -p docs
|
|
if [ -f tools/benchmarks/run_benchmarks.py ]; then
|
|
python3 tools/benchmarks/run_benchmarks.py > docs/performance-report.json
|
|
else
|
|
echo '{"status":"skipped","reason":"missing tools/benchmarks/run_benchmarks.py"}' > docs/performance-report.json
|
|
fi
|
|
- name: Upload performance report
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: performance
|
|
path: docs/performance-report.json
|
|
hil:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- name: Run HIL tests (émulateur/hardware cloud)
|
|
run: |
|
|
mkdir -p docs
|
|
if [ -f tools/hil/run_hil_tests.py ]; then
|
|
python3 tools/hil/run_hil_tests.py > docs/hil-report.json
|
|
else
|
|
echo '{"status":"skipped","reason":"missing tools/hil/run_hil_tests.py"}' > docs/hil-report.json
|
|
fi
|
|
- name: Upload HIL report
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: hil
|
|
path: docs/hil-report.json
|