diff --git a/.github/workflows/formatting_testing.yml b/.github/workflows/formatting_testing.yml index b4b55d4..93865d5 100644 --- a/.github/workflows/formatting_testing.yml +++ b/.github/workflows/formatting_testing.yml @@ -25,7 +25,18 @@ jobs: - name: pip freeze run: python -m pip freeze --local shell: bash + + - name: Get changed files + id: changed-files + run: | + echo "::set-output name=files::$(git diff --name-only origin/${{ github.event.pull_request.base.ref }}...${{ github.event.pull_request.head.sha }})" - name: run pre-commit - run: pre-commit run --color=always --show-diff-on-failure + run: | + FILES="${{ steps.changed-files.outputs.files }}" + if [ -n "$FILES" ]; then + echo "$FILES" | xargs pre-commit run --files + else + echo "No files to check." + fi shell: bash diff --git a/src/logging.py b/src/logging.py index 9f52c22..5df8740 100644 --- a/src/logging.py +++ b/src/logging.py @@ -55,3 +55,4 @@ config.dictConfig(log_config) tg_logger = logging.getLogger("wachter_telegram_logger") +print("MMM")