-
Notifications
You must be signed in to change notification settings - Fork 160
47 lines (37 loc) · 1.08 KB
/
engine_unit-test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
name: engine unit-test
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
engine_unit-test:
runs-on: ubuntu-latest
strategy:
max-parallel: 1
fail-fast: false
matrix:
python-version: ['3.11']
steps:
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Get source code for collecting coverage
uses: actions/checkout@v3
- name: Install coverage
run: |
python -m pip install --upgrade pip
pip install coverage
- name: Run unit-tests and collect coverage
run: |
coverage run --include=kernel_hardening_checker/engine.py,kernel_hardening_checker/test_engine.py -m unittest -v -b
coverage xml -i -o coverage_unittest.xml
- name: Handle coverage
uses: codecov/codecov-action@v3
with:
files: ./coverage_unittest.xml
flags: engine_unit-test
name: engine_unit-test_upload
fail_ci_if_error: true
verbose: true