Skip to content

Commit

Permalink
Updated pytest step in workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
dalmouiee committed Dec 24, 2024
1 parent 915ca0e commit 8b80c7b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8b80c7b

Please sign in to comment.