From 16c0abdc9a1ef96991134866269683ee39fabe26 Mon Sep 17 00:00:00 2001 From: Christophe Vandeplas Date: Fri, 30 Aug 2024 11:55:16 +0200 Subject: [PATCH] new: [test] test coverage report --- .github/workflows/unittest.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/unittest.yml b/.github/workflows/unittest.yml index 6ccfd3c..fc41d33 100644 --- a/.github/workflows/unittest.yml +++ b/.github/workflows/unittest.yml @@ -37,7 +37,7 @@ jobs: - name: Install Python dependencies run: | python -m pip install --upgrade pip - pip install flake8 pytest + pip install flake8 pytest coverage if [ -f requirements.txt ]; then pip install -r requirements.txt; fi - name: Install yara run: | @@ -62,4 +62,8 @@ jobs: find . -iname '*.tar.gz' -execdir tar xzf {} \; 2> /dev/null - name: Test with python unittest run: | - python -m unittest -v + python -m coverage run -m unittest -v + + - name: Generate coverage report + run: | + python -m coverage report -m