| # Copyright (c) 2023 Intel Corporation. |
| # SPDX-License-Identifier: Apache-2.0 |
| |
| name: Misc. Pylib Scripts TestSuite |
| |
| on: |
| push: |
| branches: |
| - main |
| - v*-branch |
| paths: |
| - 'scripts/pylib/build_helpers/**' |
| - '.github/workflows/pylib_tests.yml' |
| pull_request: |
| branches: |
| - main |
| - v*-branch |
| paths: |
| - 'scripts/pylib/build_helpers/**' |
| - '.github/workflows/pylib_tests.yml' |
| |
| permissions: |
| contents: read |
| |
| jobs: |
| pylib-tests: |
| name: Misc. Pylib Unit Tests |
| runs-on: ${{ matrix.os }} |
| strategy: |
| matrix: |
| python-version: ['3.10', '3.11', '3.12', '3.13'] |
| os: [ubuntu-24.04] |
| steps: |
| - name: checkout |
| uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 |
| |
| - name: Set up Python ${{ matrix.python-version }} |
| uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0 |
| with: |
| python-version: ${{ matrix.python-version }} |
| cache: pip |
| cache-dependency-path: scripts/requirements-actions.txt |
| |
| - name: Install Python packages |
| run: | |
| pip install -r scripts/requirements-actions.txt --require-hashes |
| - name: Run pytest for build_helpers |
| env: |
| ZEPHYR_BASE: ./ |
| ZEPHYR_TOOLCHAIN_VARIANT: zephyr |
| run: | |
| echo "Run build_helpers tests" |
| PYTHONPATH=./scripts/tests pytest ./scripts/tests/build_helpers |