Skip to content

Commit 4d2ddf0

Browse files
nashifkartben
authored andcommitted
ci: codecov: install pinned python environment
Need gcovr for coverage generation. Signed-off-by: Anas Nashif <[email protected]>
1 parent 1823c39 commit 4d2ddf0

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

.github/workflows/codecov.yaml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,17 @@ jobs:
6868
with:
6969
fetch-depth: 0
7070

71+
- name: Set up Python
72+
uses: actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38 # v5.4.0
73+
with:
74+
python-version: 3.12
75+
cache: pip
76+
cache-dependency-path: scripts/requirements-actions.txt
77+
78+
- name: Install Python packages
79+
run: |
80+
pip install -r scripts/requirements-actions.txt --require-hashes
81+
7182
- name: west setup
7283
run: |
7384
west init -l . || true
@@ -104,7 +115,7 @@ jobs:
104115
export ZEPHYR_BASE=${PWD}
105116
export ZEPHYR_TOOLCHAIN_VARIANT=zephyr
106117
mkdir -p coverage/reports
107-
./scripts/twister -E ${{matrix.normalized}}-testplan.json
118+
./scripts/twister --save-tests ${{matrix.normalized}}-testplan.json
108119
ls -la
109120
./scripts/twister \
110121
-i --force-color -N -v --filter runnable -p ${{ matrix.platform }} --coverage \

0 commit comments

Comments
 (0)