mirror of
https://github.com/micropython/micropython.git
synced 2025-09-04 17:00:30 +02:00
With this change, the zephyr port is tested against the standard test suite via the following scheme: - the zephyr port is built with the `qemu_cortex_m3` board and the `prj_minimal.conf` configuration - `qemu-system-arm` runs `zephyr.elf` - the zephyr console is redirected to a pts/pty - `tests/run-tests.py` is run in bare-metal mode against the pts/pty device This allows testing the zephyr port as though it were a physical board attached over a serial port. Signed-off-by: Damien George <damien@micropython.org>
35 lines
800 B
YAML
35 lines
800 B
YAML
name: zephyr port
|
|
|
|
on:
|
|
push:
|
|
pull_request:
|
|
paths:
|
|
- '.github/workflows/ports_zephyr.yml'
|
|
- 'tools/**'
|
|
- 'py/**'
|
|
- 'extmod/**'
|
|
- 'shared/**'
|
|
- 'lib/**'
|
|
- 'ports/zephyr/**'
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: Install packages
|
|
run: source tools/ci.sh && ci_zephyr_setup
|
|
- name: Install Zephyr
|
|
run: source tools/ci.sh && ci_zephyr_install
|
|
- name: Build
|
|
run: source tools/ci.sh && ci_zephyr_build
|
|
- name: Run main test suite
|
|
run: source tools/ci.sh && ci_zephyr_run_tests
|
|
- name: Print failures
|
|
if: failure()
|
|
run: tests/run-tests.py --print-failures
|