Update issues.md
[kconfig-hardened-check.git] / .woodpecker / engine_unit-test.yml
index b6711c50d03bd33bf916c3b9e4e744dca061de9c..199b65bcff917ad8b42a9ce1796acf8aad8bf594 100644 (file)
@@ -1,16 +1,13 @@
 # .woodpecker.yml
-pipeline:
-  hello-step:
+steps:
+  unit-test:
     image: python:3
+    pull: true
     commands:
-      - echo "Hello, this is the engine unit-test"
-  build:
-    image: python:3
-    commands:
-      - echo "Building..."
+      - echo "Prepare the engine unit-test..."
       - python --version
-  a-test-step:
-    image: python:3
-    commands:
-      - echo "Testing..."
-      - ./bin/kconfig-hardened-check
+      - pip install --no-cache-dir coverage
+      - echo "Run unit-tests and collect coverage..."
+      - coverage run --include=kernel_hardening_checker/engine.py,kernel_hardening_checker/test_engine.py -m unittest -v -b
+      - echo "Show the coverage report..."
+      - coverage report