From 3fdc7f2bfa2dd88896fb5f13836be092ba92f361 Mon Sep 17 00:00:00 2001 From: Tullio Sebastiani Date: Tue, 16 Jan 2024 18:38:52 +0100 Subject: [PATCH] added unit tests Signed-off-by: Tullio Sebastiani added unit tests Signed-off-by: Tullio Sebastiani --- .github/workflows/functional_tests.yaml | 4 +++- .github/workflows/test.yml | 2 ++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/functional_tests.yaml b/.github/workflows/functional_tests.yaml index 9a05e6c7e..3d9b28253 100644 --- a/.github/workflows/functional_tests.yaml +++ b/.github/workflows/functional_tests.yaml @@ -114,9 +114,11 @@ jobs: echo -e "## CI/config/common_test_config.yaml\n\n" cat CI/config/common_test_config.yaml - - name: Running test suite + - name: Running Functional test suite run: | ./CI/run.sh + - name: Run Unit test suite + run: python -m coverage run -a -m unittest discover -s tests -v - name: Print test output run: cat CI/out/* - name: Create coverage report diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 4029aebb6..854a32d0e 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -75,6 +75,8 @@ jobs: ./CI/run.sh cat ./CI/results.markdown >> $GITHUB_STEP_SUMMARY echo >> $GITHUB_STEP_SUMMARY + - name: Run Unit tests + run: python -m coverage run -a -m unittest discover -s tests -v - name: Upload CI logs uses: actions/upload-artifact@v3 with: