Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,12 @@ jobs:
with:
cp-version: ${{ needs.scheduler.outputs.cp-version }}

zephyr-tests:
needs: scheduler
uses: ./.github/workflows/run-zephyr-tests.yml
with:
cp-version: ${{ needs.scheduler.outputs.cp-version }}

mpy-cross:
needs: scheduler
if: needs.scheduler.outputs.ports != '{}'
Expand Down
38 changes: 0 additions & 38 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,41 +65,3 @@ jobs:
if: matrix.test == 'all'
run: ./run-natmodtests.py extmod/{heapq*,random*,re*}.py
working-directory: tests

zephyr:
runs-on: ubuntu-24.04
strategy:
fail-fast: false
env:
CP_VERSION: ${{ inputs.cp-version }}
steps:
- name: Set up repository
uses: actions/checkout@v6
with:
submodules: false
show-progress: false
fetch-depth: 1
- name: Set up python
uses: actions/setup-python@v6
with:
python-version: 3.13
- name: Set up Zephyr
uses: ./.github/actions/deps/ports/zephyr-cp
- name: Set up submodules
id: set-up-submodules
uses: ./.github/actions/deps/submodules
with:
target: zephyr-cp
- name: Set up external
uses: ./.github/actions/deps/external
- name: Build native sim target
run: make -C ports/zephyr-cp -j2 BOARD=native_native_sim
- name: Build bsim
run: make -j 2 everything
working-directory: ports/zephyr-cp/tools/bsim
- name: Build native_nrf5340bsim
run: make -C ports/zephyr-cp -j2 BOARD=native_nrf5340bsim
- name: Build native_nrf54lm20bsim
run: make -C ports/zephyr-cp -j2 BOARD=native_nrf54lm20bsim
- name: Run Zephyr tests
run: make -C ports/zephyr-cp test
47 changes: 47 additions & 0 deletions .github/workflows/run-zephyr-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: Run Zephyr tests

on:
workflow_call:
inputs:
cp-version:
required: true
type: string

jobs:
zephyr:
runs-on: ubuntu-24.04
strategy:
fail-fast: false
env:
CP_VERSION: ${{ inputs.cp-version }}
steps:
- name: Set up repository
uses: actions/checkout@v6
with:
submodules: false
show-progress: false
fetch-depth: 1
- name: Set up python
uses: actions/setup-python@v6
with:
python-version: 3.13
- name: Set up Zephyr
uses: ./.github/actions/deps/ports/zephyr-cp
- name: Set up submodules
id: set-up-submodules
uses: ./.github/actions/deps/submodules
with:
target: zephyr-cp
- name: Set up external
uses: ./.github/actions/deps/external
- name: Build native sim target
run: make -C ports/zephyr-cp -j2 BOARD=native_native_sim
- name: Build bsim
run: make -j 2 everything
working-directory: ports/zephyr-cp/tools/bsim
- name: Build native_nrf5340bsim
run: make -C ports/zephyr-cp -j2 BOARD=native_nrf5340bsim
- name: Build native_nrf54lm20bsim
run: make -C ports/zephyr-cp -j2 BOARD=native_nrf54lm20bsim
- name: Run Zephyr tests
run: make -C ports/zephyr-cp test
1 change: 1 addition & 0 deletions tools/ci_set_matrix.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@
"tools/ci_check_duplicate_usb_vid_pid.py",
"tools/ci_set_matrix.py",
".github/workflows/run-tests.yml",
".github/workflows/run-zephyr-tests.yml",
".github/workflows/build-board-custom.yml",
".github/workflows/bundle_cron.yml",
".github/workflows/create-website-pr.yml",
Expand Down
Loading