From 8b80c7b458ea95c8c61be81348d6ccaf04b30d2b Mon Sep 17 00:00:00 2001 From: Daniel Al Mouiee Date: Tue, 24 Dec 2024 19:14:12 +1100 Subject: [PATCH] Updated pytest step in workflow --- .github/workflows/pull-request.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml index 7f804d7..5b7115e 100644 --- a/.github/workflows/pull-request.yml +++ b/.github/workflows/pull-request.yml @@ -40,12 +40,13 @@ jobs: run: | poetry run pylint pydicer # Run tests with coverage & generate badge - - name: Pytest validation + - name: Conditional Pytest coverage run: | if [[ "${{ matrix.python-version }}" == "3.9" ]]; then echo "Running Pytest with coverage..." poetry run pip install pytest-cov - poetry run pytest --cov=pydicer --cov-report=xml --cov-omit="*/cli/* # Omit CLI from coverage report since not developed fully + # Omit CLI from coverage report since it's not fully developed + poetry run pytest --cov=pydicer --cov-report=xml --cov-omit="*/cli/*" else echo "Running Pytest without coverage..." poetry run pytest