Skip to content

Commit a5e1f59

Browse files
karhamacvinayak
authored andcommitted
ci: fix compliance workflow
Fixing failing compliance workflow. Signed-off-by: Kari Hamalainen <[email protected]> (cherry picked from commit 0b418d1) Signed-off-by: Chettimada, Vinayak <[email protected]>
1 parent 1fa060e commit a5e1f59

File tree

1 file changed

+7
-15
lines changed

1 file changed

+7
-15
lines changed

.github/workflows/compliance.yml

Lines changed: 7 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -20,40 +20,32 @@ jobs:
2020
path: ~/.cache/pip
2121
key: ${{ runner.os }}-doc-pip
2222

23-
- name: Install python dependencies
23+
- name: Install west
2424
run: |
25-
pip3 install -U pip
26-
pip3 install -U setuptools
27-
export PATH="$HOME/.local/bin:$PATH"
28-
pip3 install -U wheel
29-
# TODO: add yamllint to scripts/requirements-fixed.txt
30-
pip3 install -U yamllint
31-
pip3 install lxml==4.9.4
32-
pip3 install -U python-magic junitparser==2.8.0 gitlint pylint pykwalify unidiff
33-
pip3 install --user -U west
34-
pip3 show -f west
25+
pip install west
26+
pip show -f west
3527
3628
- name: West init and update
3729
working-directory: ncs
3830
env:
3931
PR_REF: ${{ github.event.pull_request.head.sha }}
4032
run: |
41-
export PATH="$HOME/.local/bin:$PATH"
42-
export PATH="$HOME/bin:$PATH"
4333
west init -m https://github.com/nrfconnect/sdk-nrf
4434
west update
4535
west zephyr-export
4636
# west update will override the ref, so check it out again
4737
git -C nrfxlib checkout ${PR_REF}
4838
39+
- name: Install requirements
40+
working-directory: ncs
41+
run: pip install -r zephyr/scripts/requirements-actions.txt --require-hashes
42+
4943
- name: Run Compliance Tests
5044
continue-on-error: true
5145
env:
5246
BASE_REF: ${{ github.base_ref }}
5347
working-directory: ncs/nrfxlib
5448
run: |
55-
export PATH="$HOME/.local/bin:$PATH"
56-
export PATH="$HOME/bin:$PATH"
5749
export ZEPHYR_BASE="$(dirname "$(pwd)")/zephyr"
5850
git config --global user.email "[email protected]"
5951
git config --global user.name "Your Name"

0 commit comments

Comments
 (0)