fix(frontend): keep chat context rail clear of app nav #8675
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: pre-commit | |
| on: | |
| pull_request: | |
| push: | |
| branches: [ main, master, dev ] | |
| permissions: | |
| contents: read | |
| concurrency: | |
| group: pre-commit-${{ github.event.pull_request.number || github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| run-pre-commit: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 10 | |
| steps: | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd | |
| with: | |
| fetch-depth: 0 | |
| ref: ${{ github.event.pull_request.head.sha || github.sha }} | |
| - uses: actions/setup-python@v6 | |
| with: | |
| python-version: '3.12' | |
| - name: Install pre-commit | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install pre-commit pytest | |
| - name: Run pre-commit | |
| run: | | |
| if [ "${{ github.event_name }}" = "pull_request" ]; then | |
| HEAD_SHA="${{ github.event.pull_request.head.sha }}" | |
| FROM_REF="${{ github.event.pull_request.base.sha }}" | |
| if git rev-parse --verify "${HEAD_SHA}^" >/dev/null 2>&1; then | |
| FROM_REF="${HEAD_SHA}^" | |
| fi | |
| pre-commit run --show-diff-on-failure \ | |
| --from-ref "$FROM_REF" \ | |
| --to-ref "$HEAD_SHA" | |
| elif [ "${{ github.event_name }}" = "push" ]; then | |
| HEAD_SHA="${{ github.sha }}" | |
| FROM_REF="${{ github.event.before }}" | |
| if [ -z "$FROM_REF" ] || [ "$FROM_REF" = "0000000000000000000000000000000000000000" ]; then | |
| if git rev-parse --verify "${HEAD_SHA}^" >/dev/null 2>&1; then | |
| FROM_REF="${HEAD_SHA}^" | |
| else | |
| pre-commit run --all-files --show-diff-on-failure | |
| exit $? | |
| fi | |
| fi | |
| pre-commit run --show-diff-on-failure \ | |
| --from-ref "$FROM_REF" \ | |
| --to-ref "$HEAD_SHA" | |
| else | |
| pre-commit run --all-files --show-diff-on-failure | |
| fi | |
| - name: Guard Runtime Compatibility Debt | |
| run: | | |
| # Run this guard test with a minimal config and cut off root conftest/plugin loading. | |
| python -m pytest -c /dev/null --confcutdir=tldw_Server_API/tests/lint -o cache_dir=/tmp/pytest-cache-precommit tldw_Server_API/tests/lint/test_no_new_runtime_compat_markers.py -v |