Upmerge 2025.04.23 #419
Workflow file for this run
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | # Copyright (c) 2023 Intel Corporation. | |
| # SPDX-License-Identifier: Apache-2.0 | |
| name: Twister BlackBox TestSuite | |
| on: | |
| pull_request: | |
| branches: | |
| - main | |
| - collab-* | |
| - v*-branch | |
| paths: | |
| - 'scripts/pylib/twister/**' | |
| - 'scripts/twister' | |
| - 'scripts/tests/twister_blackbox/**' | |
| - '.github/workflows/twister_tests_blackbox.yml' | |
| permissions: | |
| contents: read | |
| jobs: | |
| twister-tests: | |
| name: Twister Black Box Tests | |
| runs-on: ubuntu-24.04 | |
| strategy: | |
| matrix: | |
| python-version: ['3.10', '3.11', '3.12', '3.13'] | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
| with: | |
| path: zephyr | |
| fetch-depth: 0 | |
| - name: Set Up Python ${{ matrix.python-version }} | |
| uses: actions/setup-python@8d9ed9ac5c53483de85588cdf95a591a75ab9f55 # v5.5.0 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| cache: pip | |
| cache-dependency-path: scripts/requirements-actions.txt | |
| - name: install-packages | |
| working-directory: zephyr | |
| run: | | |
| pip install -r scripts/requirements-actions.txt --require-hashes | |
| sudo apt-get update -y | |
| sudo apt-get install -y lcov | |
| - name: Setup Zephyr project | |
| uses: zephyrproject-rtos/action-zephyr-setup@f7b70269a8eb01f70c8e710891e4c94972a2f6b4 # v1.0.6 | |
| with: | |
| app-path: zephyr | |
| toolchains: all | |
| - name: Run Pytest For Twister Black Box Tests | |
| working-directory: zephyr | |
| shell: bash | |
| env: | |
| ZEPHYR_BASE: ./ | |
| ZEPHYR_TOOLCHAIN_VARIANT: zephyr | |
| run: | | |
| export ZEPHYR_SDK_INSTALL_DIR=${{ github.workspace }}/zephyr-sdk | |
| echo "Run twister tests" | |
| source zephyr-env.sh | |
| PYTHONPATH="./scripts/tests" pytest ./scripts/tests/twister_blackbox/ |