diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 9a8fa29..e092040 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -52,18 +52,18 @@ jobs: - name: Fetch base branch run: git fetch origin main - # Compare coverage with the base branch - - name: Compare coverage - run: | - pip install diff-cover - git checkout main - python -m coverage run -p -m pytest src/jp2_remediator/tests/unit - python -m coverage xml -o coverage-base.xml - git checkout - - python diff-cover --compare-branch=main coverage.xml + # # Compare coverage with the base branch + # - name: Compare coverage + # run: | + # pip install diff-cover + # git checkout main + # python -m coverage run -p -m pytest src/jp2_remediator/tests/unit + # python -m coverage xml -o coverage-base.xml + # git checkout - + # python diff-cover --compare-branch=main coverage.xml - # Fail if coverage decreases - - name: Fail if coverage decreases - run: | - python diff-cover --compare-branch=main coverage.xml --fail-under=100 + # # Fail if coverage decreases + # - name: Fail if coverage decreases + # run: | + # python diff-cover --compare-branch=main coverage.xml --fail-under=100 diff --git a/src/jp2_remediator/__init__.py b/src/jp2_remediator/__init__.py index 1a7a2bd..ce40ebb 100644 --- a/src/jp2_remediator/__init__.py +++ b/src/jp2_remediator/__init__.py @@ -1,7 +1,6 @@ import logging from logging.handlers import TimedRotatingFileHandler import os -import socket from datetime import datetime LOG_FILE_BACKUP_COUNT = int(os.getenv('LOG_FILE_BACKUP_COUNT', '30'))