Skip to content

Commit 0ba1c56

Browse files
MirkoCovizzieivindj-nordic
authored andcommitted
workflows: compliance: use fixed python dependencies
Use fixed python dependencies from NCS. This addresses a faulty junitparser release 4.0.0 causing failures in compliance CI. Signed-off-by: Mirko Covizzi <[email protected]>
1 parent 95e341c commit 0ba1c56

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

.github/workflows/compliance.yml

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
path: ~/.cache/pip
3333
key: ${{ runner.os }}-doc-pip
3434

35-
- name: Install python dependencies
35+
- name: Install python prerequisites
3636
working-directory: nrf-bm
3737
run: |
3838
export PATH="$HOME/.local/bin:$PATH"
@@ -57,10 +57,15 @@ jobs:
5757
west config manifest.group-filter -- +ci,-optional
5858
west update -o=--depth=1 -n 2>&1 1> west.update.log || west update -o=--depth=1 -n 2>&1 1> west.update2.log
5959
60-
- name: Install zephyr compliance dependencies
61-
working-directory: zephyr
62-
continue-on-error: false
63-
run: pip3 install -U -r scripts/requirements-compliance.txt
60+
- name: Install python dependencies
61+
working-directory: nrf
62+
run: |
63+
pip3 install -U pip
64+
pip3 install -U wheel
65+
grep -E "^setuptools" scripts/requirements-fixed.txt | cut -d ' ' -f '1' | xargs pip3 install -U
66+
grep -E "^python-magic=|^junitparser|^lxml|^gitlint|^pylint|^pykwalify|^yamllint|^unidiff" scripts/requirements-fixed.txt | cut -d ' ' -f '1' | xargs pip3 install -U
67+
grep -E "^west" scripts/requirements-fixed.txt | cut -d ' ' -f '1' | xargs pip3 install -U
68+
pip3 show -f west
6469
6570
- name: Run CODEOWNERS test
6671
id: codeowners

0 commit comments

Comments
 (0)