From b9f7cd4bc151bdf88c48e93c3c978c2de0f47101 Mon Sep 17 00:00:00 2001 From: Alexander Popov Date: Mon, 8 May 2023 00:21:58 +0300 Subject: [PATCH] Run the engine unit-test in Woodpecker-CI --- .woodpecker/engine_unit-test.yml | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) diff --git a/.woodpecker/engine_unit-test.yml b/.woodpecker/engine_unit-test.yml index b6711c5..442b14c 100644 --- a/.woodpecker/engine_unit-test.yml +++ b/.woodpecker/engine_unit-test.yml @@ -1,16 +1,13 @@ # .woodpecker.yml pipeline: - hello-step: + 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=kconfig_hardened_check/engine.py,kconfig_hardened_check/test_engine.py -m unittest -v -b + - echo "Show the coverage report..." + - coverage report -- 2.31.1