- name: Get source code for collecting coverage
uses: actions/checkout@v4
+ - name: Check static typing with mypy
+ run: |
+ pip install mypy
+ mypy kernel_hardening_checker/
+
- name: Run the functional tests and collect the coverage
run: |
pip install coverage
- COUNT=0
- for C in $KCONFIGS; do COUNT=$(expr $COUNT + 1); echo ">>>>> checking kconfig number $COUNT <<<<<"; kernel-hardening-checker -c $C -l /proc/cmdline -s /tmp/sysctls; done
- echo "Have checked $COUNT kconfigs"
+ static-typing-checking:
+ image: python:3
+ pull: true
+ commands:
+ - echo "Install the mypy tool..."
+ - python --version
+ - pip install --no-cache-dir mypy
+ - mypy kernel_hardening_checker/
functional-test-with-coverage:
image: python:3
pull: true