ci: compliance: setup west modules
Setup a complete workspace with west. Some checks need access to configured modules. Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
parent
364129dc25
commit
0a98147d04
1 changed files with 14 additions and 2 deletions
16
.github/workflows/compliance.yml
vendored
16
.github/workflows/compliance.yml
vendored
|
@ -7,8 +7,14 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
name: Run compliance checks on patch series (PR)
|
name: Run compliance checks on patch series (PR)
|
||||||
steps:
|
steps:
|
||||||
|
- name: Update PATH for west
|
||||||
|
run: |
|
||||||
|
echo "$HOME/.local/bin" >> $GITHUB_PATH
|
||||||
|
|
||||||
- name: Checkout the code
|
- name: Checkout the code
|
||||||
uses: actions/checkout@v1
|
uses: actions/checkout@v2
|
||||||
|
with:
|
||||||
|
ref: ${{ github.base_ref }}
|
||||||
|
|
||||||
- name: cache-pip
|
- name: cache-pip
|
||||||
uses: actions/cache@v1
|
uses: actions/cache@v1
|
||||||
|
@ -23,15 +29,21 @@ jobs:
|
||||||
pip3 install python-magic junitparser gitlint pylint pykwalify
|
pip3 install python-magic junitparser gitlint pylint pykwalify
|
||||||
pip3 install west
|
pip3 install west
|
||||||
|
|
||||||
|
- name: west setup
|
||||||
|
run: |
|
||||||
|
west init -l . || true
|
||||||
|
west update
|
||||||
|
|
||||||
- name: Run Compliance Tests
|
- name: Run Compliance Tests
|
||||||
id: compliance
|
id: compliance
|
||||||
env:
|
env:
|
||||||
BASE_REF: ${{ github.base_ref }}
|
BASE_REF: ${{ github.base_ref }}
|
||||||
run: |
|
run: |
|
||||||
export PATH=$PATH:~/.local/bin
|
|
||||||
export ZEPHYR_BASE=$PWD
|
export ZEPHYR_BASE=$PWD
|
||||||
git config --global user.email "you@example.com"
|
git config --global user.email "you@example.com"
|
||||||
git config --global user.name "Your Name"
|
git config --global user.name "Your Name"
|
||||||
|
ls -la
|
||||||
|
git remote -v
|
||||||
git rebase origin/${BASE_REF}
|
git rebase origin/${BASE_REF}
|
||||||
./scripts/ci/check_compliance.py -m Codeowners -m Devicetree -m Gitlint -m Identity -m Nits -m pylint -m checkpatch -m Kconfig -c origin/${BASE_REF}.. || true
|
./scripts/ci/check_compliance.py -m Codeowners -m Devicetree -m Gitlint -m Identity -m Nits -m pylint -m checkpatch -m Kconfig -c origin/${BASE_REF}.. || true
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue