Skip to content

tests: samples: applications: Replacement native_posix to native_sim #132

tests: samples: applications: Replacement native_posix to native_sim

tests: samples: applications: Replacement native_posix to native_sim #132

Workflow file for this run

name: NCS west commands
on:
pull_request:
branches: [main]
paths:
- scripts/west_commands/**
- scripts/requirements-west-ncs-sbom.txt
- scripts/requirements-extra.txt
jobs:
west_commands_job:
runs-on: ubuntu-latest
name: Run Python checks for west commands on patch series (PR)
steps:
- name: Checkout the code
uses: nrfconnect/action-checkout-west-update@main
with:
path: ncs/nrf
git-ref: ${{ github.event.pull_request.head.sha }}
git-fetch-depth: 0
- name: Install python dependencies
working-directory: ncs/nrf
run: |
pip3 install -U pip
pip3 install -U setuptools
pip3 install -U wheel
pip3 install -U mypy types-colorama types-editdistance types-PyYAML
grep -E "west==" scripts/requirements-fixed.txt | cut -f1 -d"#" | cut -d ' ' -f '1'| xargs pip3 install -U
pip3 show -f west
- name: Run mypy
working-directory: ncs/nrf/scripts/west_commands
run: |
python3 -m mypy --config-file mypy.ini ncs_west_helpers.py pygit2_helpers.py ncs_commands.py
run-west-cmds:
name: Run smoke tests for ncs west commands
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-13, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: nrfconnect/action-checkout-west-update@main
with:
git-fetch-depth: 0
path: nrf
- name: Install requirements
shell: bash
run: |
python3 -m pip install -U pip
pip3 install -r nrf/scripts/requirements-west-ncs-sbom.txt
pip3 install -r nrf/scripts/requirements-extra.txt
- name: Test ncs-sbom with asset tracker sample
shell: bash
run: |
west ncs-sbom --input-files nrf/applications/asset_tracker_v2/**/*.c
- name: Smoke test ncs-loot & ncs-compare
shell: bash
run: |
west ncs-loot -h
west ncs-compare -h