Skip to content

Commit 1b6863a

Browse files
committed
ci: twister: Add unit tests for pytest-twister-harness
Add a stage to twister unit test workflow where tests for pytest-twister-harness are executed. Signed-off-by: Maciej Perkowski <[email protected]>
1 parent ed226d1 commit 1b6863a

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

.github/workflows/twister_tests.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,18 @@ jobs:
4949
- name: install-packages
5050
run: |
5151
pip3 install -r scripts/requirements-base.txt -r scripts/requirements-build-test.txt
52-
- name: Run pytest
52+
- name: Run pytest for twisterlib
5353
env:
5454
ZEPHYR_BASE: ./
5555
ZEPHYR_TOOLCHAIN_VARIANT: zephyr
5656
run: |
5757
echo "Run twister tests"
5858
PYTHONPATH=./scripts/tests pytest ./scripts/tests/twister
59+
- name: Run pytest for pytest-twister-harness
60+
env:
61+
ZEPHYR_BASE: ./
62+
ZEPHYR_TOOLCHAIN_VARIANT: zephyr
63+
PYTHONPATH: ./scripts/pylib/pytest-twister-harness/src:${PYTHONPATH}
64+
run: |
65+
echo "Run twister tests"
66+
pytest ./scripts/pylib/pytest-twister-harness/tests

0 commit comments

Comments
 (0)