Skip to content

Merge branch 'cis' #359

Merge branch 'cis'

Merge branch 'cis' #359

name: functional test
permissions:
contents: read
on:
push:
branches: [ master ]
jobs:
functional_test:
if: github.repository == 'a13xp0p0v/kernel-hardening-checker'
runs-on: ubuntu-latest
strategy:
max-parallel: 1
fail-fast: false
matrix:
python-version: ['3.9', '3.10', '3.11', '3.12', '3.13']
steps:
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Get the source code
uses: actions/checkout@v4
- name: Install coverage
run: |
python3 -m pip install --upgrade pip
python3 -m pip install coverage
- name: Run the functional tests and collect coverage
run: |
sh .github/workflows/functional_test.sh
- name: Prepare the final coverage report
run: |
coverage xml -i -o coverage.xml
- name: Handle coverage
uses: codecov/codecov-action@v4
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
with:
files: ./coverage.xml
flags: functional_test
name: functional_test_upload
fail_ci_if_error: true
verbose: true