drivers: watchdog: add watchdog driver for sf32lb platform #21
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) 2020 Intel Corporation. | |
# SPDX-License-Identifier: Apache-2.0 | |
name: Twister TestSuite | |
on: | |
push: | |
branches: | |
- main | |
- v*-branch | |
- collab-* | |
paths: | |
- 'scripts/pylib/**' | |
- 'scripts/twister' | |
- 'scripts/tests/twister/**' | |
- '.github/workflows/twister_tests.yml' | |
- 'scripts/schemas/twister/' | |
pull_request: | |
branches: | |
- main | |
- v*-branch | |
paths: | |
- 'scripts/pylib/**' | |
- 'scripts/twister' | |
- 'scripts/tests/twister/**' | |
- '.github/workflows/twister_tests.yml' | |
- 'scripts/schemas/twister/' | |
permissions: | |
contents: read | |
jobs: | |
twister-tests: | |
name: Twister 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@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6.0.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 twisterlib | |
env: | |
ZEPHYR_BASE: ./ | |
ZEPHYR_TOOLCHAIN_VARIANT: zephyr | |
run: | | |
echo "Run twister tests" | |
PYTHONPATH=./scripts/tests pytest ./scripts/tests/twister | |
- name: Run pytest for pytest-twister-harness | |
env: | |
ZEPHYR_BASE: ./ | |
ZEPHYR_TOOLCHAIN_VARIANT: zephyr | |
PYTHONPATH: ./scripts/pylib/pytest-twister-harness/src:${PYTHONPATH} | |
run: | | |
echo "Run twister tests" | |
pytest ./scripts/pylib/pytest-twister-harness/tests |