From c3dc7cf5daa01095eaa8fed377a69a29d05ab402 Mon Sep 17 00:00:00 2001 From: Alexander Popov Date: Mon, 30 Mar 2020 12:51:26 +0300 Subject: [PATCH] Create the github workflow for functional tests --- .github/workflows/main.yml | 41 ++++++++++++++++++++++++++++++++++++++ README.md | 2 ++ 2 files changed, 43 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..94659a2 --- /dev/null +++ b/.github/workflows/main.yml @@ -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 $? + diff --git a/README.md b/README.md index 40b7b01..7b31260 100644 --- 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 -- 2.31.1