From ce7626f3cb69e1ee34b45ac8f3f5331120ed23b3 Mon Sep 17 00:00:00 2001 From: Ofir Gordon Date: Tue, 28 Jan 2025 15:48:03 +0200 Subject: [PATCH] fix coverage workflow --- .github/workflows/run_tests_suite_coverage.yml | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/.github/workflows/run_tests_suite_coverage.yml b/.github/workflows/run_tests_suite_coverage.yml index 61a37197e..5c292102e 100644 --- a/.github/workflows/run_tests_suite_coverage.yml +++ b/.github/workflows/run_tests_suite_coverage.yml @@ -39,7 +39,8 @@ jobs: run: coverage run --parallel-mode -m --omit "*__init__.py" --include "model_compression_toolkit/**/*.py" unittest discover tests/common_tests -v - name: Run common tests (pytest) - run: coverage run --parallel-mode -m --omit "*__init__.py" --include "model_compression_toolkit/**/*.py" pytest tests_pytest/common + run: | + coverage run --parallel-mode -m --omit "*__init__.py" --include "model_compression_toolkit/**/*.py" pytest tests_pytest/unit_tests/common tests_pytest/integration_tests/common - name: Set up TensorFlow environment run: | @@ -76,11 +77,6 @@ jobs: source torch_env/bin/activate coverage run --parallel-mode -m --omit "*__init__.py" --include "model_compression_toolkit/**/*.py" pytest tests_pytest/unit_tests/pytorch tests_pytest/integration_tests/pytorch - - name: Run Common tests (pytest) - run: | - coverage run --parallel-mode -m --omit "*__init__.py" --include "model_compression_toolkit/**/*.py" pytest tests_pytest/unit_tests/common tests_pytest/integration_tests/common - - - name: Combine Multiple Coverage Files run: coverage combine