@@ -104,7 +104,6 @@ jobs:
104104 export ZEPHYR_BASE=${PWD}
105105 export ZEPHYR_TOOLCHAIN_VARIANT=zephyr
106106 mkdir -p coverage/reports
107- pip install gcovr==6.0
108107 ./scripts/twister -E ${{matrix.normalized}}-testplan.json
109108 ls -la
110109 ./scripts/twister \
@@ -144,6 +143,23 @@ jobs:
144143 with :
145144 fetch-depth : 0
146145
146+ - name : Set up Python
147+ uses : actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38 # v5.4.0
148+ with :
149+ python-version : 3.12
150+
151+ - name : cache-pip
152+ uses : actions/cache@d4323d4df104b026a6aa633fdb11d772146be0bf # v4.2.2
153+ with :
154+ path : ~/.cache/pip
155+ key : ${{ hashFiles('scripts/requirements-actions.txt') }}
156+ restore-keys : |
157+ ${{ hashFiles('scripts/requirements-actions.txt') }}
158+
159+ - name : install-packages
160+ run : |
161+ pip install -r scripts/requirements-actions.txt --require-hashes
162+
147163 - name : Download Artifacts
148164 uses : actions/download-artifact@cc203385981b70ca67e1cc392babf9cc229d5806 # v4.1.9
149165 with :
@@ -185,7 +201,6 @@ jobs:
185201 - name : Merge coverage files
186202 run : |
187203 pushd ./coverage/reports
188- pip install gcovr==6.0
189204 gcovr ${{ steps.get-coverage-files.outputs.mergefiles }} --merge-mode-functions=separate --json merged.json
190205 gcovr ${{ steps.get-coverage-files.outputs.mergefiles }} --merge-mode-functions=separate --cobertura merged.xml
191206 popd
@@ -201,7 +216,6 @@ jobs:
201216 - name : Generate Coverage Report
202217 if : always()
203218 run : |
204- pip install xlsxwriter ijson
205219 python3 ./scripts/ci/coverage/coverage_analysis.py \
206220 -t native_sim-testplan.json \
207221 -m MAINTAINERS.yml \
0 commit comments