From a8c36998f3c341b635074caa39997d33df0cd650 Mon Sep 17 00:00:00 2001 From: Grzegorz Latosinski Date: Tue, 20 Feb 2024 17:41:33 +0100 Subject: [PATCH] [#54920] .ci.yml: Added usage of venv Signed-off-by: Grzegorz Latosinski --- .ci.yml | 2 ++ README.md | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.ci.yml b/.ci.yml index 4dc1319..3f5eef1 100644 --- a/.ci.yml +++ b/.ci.yml @@ -24,6 +24,7 @@ image: $CI_IMAGE - scripts/prepare_zephyr_env.sh - scripts/prepare_modules.sh - mkdir -p artifacts + - source .venv/bin/activate script: - | if [ "$RUNTIME" != "stub" ] @@ -122,6 +123,7 @@ unit-tests: stage: tests before_script: - scripts/prepare_zephyr_env.sh + - source .venv/bin/activate script: - west twister -T tests -p unit_testing artifacts: diff --git a/README.md b/README.md index 2d67525..f9c0dde 100644 --- a/README.md +++ b/README.md @@ -52,14 +52,14 @@ After entering the project's directory, initialize a Zephyr workspace with: ```bash ./scripts/prepare_zephyr_env.sh +source .venv/bin/activate ``` This will: * Download (if necessary) and set up Zephyr SDK * Download necessary toolchains -* Set up Python virtual environment with necessary dependencies -* Configure all necessary variables. +* Set up Python virtual environment with necessary dependencies. This can be reused to load all necessary environment before launching commands mentioned later in the README.md.