| # Copyright (c) 2023 Intel Corporation. |
| # SPDX-License-Identifier: Apache-2.0 |
| name: Misc. Pylib Scripts TestSuite |
| - 'scripts/pylib/build_helpers/**' |
| - '.github/workflows/pylib_tests.yml' |
| - 'scripts/pylib/build_helpers/**' |
| - '.github/workflows/pylib_tests.yml' |
| name: Misc. Pylib Unit Tests |
| runs-on: ${{ matrix.os }} |
| python-version: ['3.10', '3.11', '3.12'] |
| uses: actions/checkout@v4 |
| - name: Set up Python ${{ matrix.python-version }} |
| uses: actions/setup-python@v5 |
| python-version: ${{ matrix.python-version }} |
| if: startsWith(runner.os, 'Linux') |
| key: ${{ runner.os }}-pip-${{ matrix.python-version }} |
| ${{ runner.os }}-pip-${{ matrix.python-version }} |
| pip3 install -r scripts/requirements-base.txt -r scripts/requirements-build-test.txt |
| - name: Run pytest for build_helpers |
| ZEPHYR_TOOLCHAIN_VARIANT: zephyr |
| echo "Run build_helpers tests" |
| PYTHONPATH=./scripts/tests pytest ./scripts/tests/build_helpers |