Create the github workflow for functional tests
authorAlexander Popov <alex.popov@linux.com>
Mon, 30 Mar 2020 09:51:26 +0000 (12:51 +0300)
committerAlexander Popov <alex.popov@linux.com>
Mon, 30 Mar 2020 11:47:07 +0000 (14:47 +0300)
.github/workflows/main.yml [new file with mode: 0644]
README.md

diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
new file mode 100644 (file)
index 0000000..94659a2
--- /dev/null
@@ -0,0 +1,41 @@
+name: functional test
+
+on:
+  push:
+    branches: [ master ]
+  pull_request:
+    branches: [ master ]
+
+jobs:
+  check_all_configs:
+
+    runs-on: ubuntu-latest
+
+    strategy:
+      max-parallel: 4
+      fail-fast: false
+      matrix:
+        python-version: [3.6, 3.7, 3.8]
+        # github runner with python 3.5 currently fails to install this package
+
+    steps:
+
+    - uses: actions/checkout@v2
+
+    - name: Set up Python ${{ matrix.python-version }}
+      uses: actions/setup-python@v1
+      with:
+        python-version: ${{ matrix.python-version }}
+
+    - name: Install
+      run: |
+        python -m pip install --upgrade pip
+        pip install setuptools
+        python ./setup.py install
+
+    - name: Try
+      run: |
+        set -x
+        kconfig-hardened-check
+        echo $?
+
index 40b7b01c8b04d2bf3a72cb82a2432de75bd744b0..7b312609b4a43e46b72016196ae201e6b85f21e8 100644 (file)
--- a/README.md
+++ b/README.md
@@ -1,5 +1,7 @@
 # kconfig-hardened-check
 
+![functional test](https://github.com/a13xp0p0v/kconfig-hardened-check/workflows/functional%20test/badge.svg)
+
 ## Motivation
 
 There are plenty of Linux kernel hardening config options. A lot of them are