Repository navigation
58 lines (56 loc) · 1.9 KB
/
Copy pathrun-zephyr-tests.yml
File metadata and controls
58 lines (56 loc) · 1.9 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
name: Run Zephyr tests
on:
workflow_call:
inputs:
cp-version:
required: true
type: string
jobs:
zephyr:
runs-on: ubuntu-24.04
name: ${{ matrix.shard }}
strategy:
fail-fast: ${{ github.event_name == 'merge_group' }}
# One job per board family, so the bsim suites, which take the longest, run
# side by side instead of after each other.
matrix:
include:
- shard: native_sim
boards: native_native_sim native_native_sim_asan native_native_sim_lfs
pytest_args: tests/ --ignore=tests/bsim -n $(nproc) --dist loadfile
- shard: nrf5340bsim
boards: native_nrf5340bsim
pytest_args: tests/bsim -k native_nrf5340bsim -n $(nproc) --dist loadfile
- shard: nrf54lm20bsim
boards: native_nrf54lm20bsim
pytest_args: tests/bsim -k native_nrf54lm20bsim -n $(nproc) --dist loadfile
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
with:
sdl: true
- 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 bsim
if: contains(matrix.shard, 'bsim')
run: make -j $(nproc) everything
working-directory: ports/zephyr-cp/tools/bsim
- name: Run Zephyr tests
run: make -C ports/zephyr-cp -j$(nproc) test TEST_BOARDS="${{ matrix.boards }}" PYTEST_ARGS="${{ matrix.pytest_args }}"