From: Alexander Popov Date: Sun, 7 May 2023 21:21:58 +0000 (+0300) Subject: Run the engine unit-test in Woodpecker-CI X-Git-Tag: v0.6.6~161 X-Git-Url: https://jxself.org/git/?a=commitdiff_plain;h=b9f7cd4bc151bdf88c48e93c3c978c2de0f47101;hp=74f975ac7909f4c0f8433d12defb6012ab6c9ff5;p=kconfig-hardened-check.git Run the engine unit-test in Woodpecker-CI --- 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