mcp: fix run listing and JSON log compatibility #326
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Code Quality | |
| on: | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| detect-changes: | |
| name: Detect Changed Python Files | |
| runs-on: ubuntu-latest | |
| outputs: | |
| python_files: ${{ steps.changed.outputs.all_changed_files }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Get changed Python files | |
| id: changed | |
| uses: tj-actions/changed-files@ed68ef82c095e0d48ec87eccea555d944a631a4c # v46 | |
| with: | |
| files: | | |
| **/*.py | |
| files_ignore: | | |
| bublik/data/migrations/** | |
| bublik/analytics/migrations/** | |
| format-check: | |
| name: Check Code Formatting | |
| needs: detect-changes | |
| runs-on: ubuntu-latest | |
| if: ${{ needs.detect-changes.outputs.python_files != '' }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.12' | |
| - name: Install Black | |
| run: pip install $(grep '^black==' requirements.txt) | |
| - name: Run Black in check mode | |
| run: | | |
| echo "${{ needs.detect-changes.outputs.python_files }}" | xargs black --check --diff | |
| lint-check: | |
| name: Check Code Quality | |
| needs: detect-changes | |
| runs-on: ubuntu-latest | |
| if: ${{ needs.detect-changes.outputs.python_files != '' }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.12' | |
| - name: Install Ruff | |
| run: pip install ruff | |
| - name: Run Ruff | |
| run: | | |
| echo "${{ needs.detect-changes.outputs.python_files }}" | xargs ruff check | |
| f-string-check: | |
| name: Check F-String Usage | |
| needs: detect-changes | |
| runs-on: ubuntu-latest | |
| if: ${{ needs.detect-changes.outputs.python_files != '' }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.12' | |
| - name: Install Flynt | |
| run: pip install flynt | |
| - name: Run Flynt in check mode | |
| run: | | |
| echo "${{ needs.detect-changes.outputs.python_files }}" | xargs flynt -f |