Merge branch 'open_check'
[kconfig-hardened-check.git] / .github / workflows / static_analysis.yml
1 name: static analysis
2
3 on:
4   push:
5     branches: [ master ]
6   pull_request:
7     branches: [ master ]
8
9 jobs:
10   static_analysis:
11
12     runs-on: ubuntu-latest
13
14     strategy:
15       max-parallel: 1
16       fail-fast: false
17       matrix:
18         python-version: ['3.12']
19
20     steps:
21
22     - name: Set up Python ${{ matrix.python-version }}
23       uses: actions/setup-python@v5
24       with:
25         python-version: ${{ matrix.python-version }}
26
27     - name: Get the source code
28       uses: actions/checkout@v4
29
30     - name: Check static typing with mypy
31       run: |
32         pip install mypy
33         mypy kernel_hardening_checker/ --show-error-context --pretty --no-incremental --check-untyped-defs --disallow-untyped-defs --strict-equality
34
35     - name: Check code with pylint
36       run: |
37         pip install pylint
38         pip install setuptools
39         pylint --recursive=y kernel_hardening_checker setup.py