12 runs-on: ubuntu-latest
18 python-version: [3.6, 3.7, 3.8]
19 # github runner with python 3.5 currently fails to install this package
23 - name: Set up Python ${{ matrix.python-version }}
24 uses: actions/setup-python@v1
26 python-version: ${{ matrix.python-version }}
28 - name: Install package
30 python -m pip install --upgrade pip
32 pip --verbose install git+https://github.com/a13xp0p0v/kconfig-hardened-check
33 kconfig-hardened-check
35 - name: Check all configs
37 echo ">>>>> check all configs <<<<<"
38 CONFIG_DIR=`find /opt/hostedtoolcache/Python/ -name config_files`
39 CONFIGS=`find $CONFIG_DIR -type f|grep "\.config"`
43 COUNT=$(expr $COUNT + 1)
44 echo -e "\n>>>>> checking config number $COUNT <<<<<"
45 kconfig-hardened-check -c $C
47 echo -e "\n>>>>> checking $COUNT configs is done <<<<<"
49 - name: Get source code
50 uses: actions/checkout@v2
52 - name: Collect coverage
54 coverage run -a --branch bin/kconfig-hardened-check
55 coverage run -a --branch bin/kconfig-hardened-check -h
56 coverage run -a --branch bin/kconfig-hardened-check --version
58 coverage run -a --branch bin/kconfig-hardened-check -p X86_64
59 coverage run -a --branch bin/kconfig-hardened-check -p X86_64 -m verbose
60 coverage run -a --branch bin/kconfig-hardened-check -p X86_64 -m json
62 coverage run -a --branch bin/kconfig-hardened-check -p X86_32
63 coverage run -a --branch bin/kconfig-hardened-check -p X86_32 -m verbose
64 coverage run -a --branch bin/kconfig-hardened-check -p X86_32 -m json
66 coverage run -a --branch bin/kconfig-hardened-check -p ARM64
67 coverage run -a --branch bin/kconfig-hardened-check -p ARM64 -m verbose
68 coverage run -a --branch bin/kconfig-hardened-check -p ARM64 -m json
70 coverage run -a --branch bin/kconfig-hardened-check -p ARM
71 coverage run -a --branch bin/kconfig-hardened-check -p ARM -m verbose
72 coverage run -a --branch bin/kconfig-hardened-check -p ARM -m json
74 CONFIG_DIR=`find /opt/hostedtoolcache/Python/ -name config_files`
75 CONFIGS=`find $CONFIG_DIR -type f|grep "\.config"`
78 coverage run -a --branch bin/kconfig-hardened-check -c $C
79 coverage run -a --branch bin/kconfig-hardened-check -c $C -m verbose
80 coverage run -a --branch bin/kconfig-hardened-check -c $C -m json
81 coverage run -a --branch bin/kconfig-hardened-check -c $C -m show_ok
82 coverage run -a --branch bin/kconfig-hardened-check -c $C -m show_fail
84 coverage xml -i -o coverage.xml
86 - name: Handle coverage
87 uses: codecov/codecov-action@v1
90 flags: functional_test
91 name: codecov-umbrella
92 fail_ci_if_error: true