chore(ui): replace default logo with new brand logo #1362
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: Pull Request Checks | |
| on: | |
| workflow_dispatch: | |
| pull_request: | |
| branches: [main] | |
| types: [opened, synchronize, reopened, ready_for_review] | |
| push: | |
| branches: [main] | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| pre-commit: | |
| runs-on: ubuntu-latest | |
| if: github.event_name != 'pull_request' || github.event.pull_request.draft == false | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Ensure uv is available | |
| shell: bash | |
| run: | | |
| set -e | |
| if ! command -v uv >/dev/null 2>&1; then | |
| echo "uv not found, installing..." | |
| python3 -m pip install --user uv | |
| echo "$HOME/.local/bin" >> $GITHUB_PATH | |
| fi | |
| # Use python -m uv to be safe | |
| python3 -m uv --version || uv --version | |
| - name: Create virtual environment (if not exists) | |
| shell: bash | |
| run: | | |
| set -e | |
| # 使用 python3 -m uv 确保 uv 命令可用 | |
| _UV="python3 -m uv" | |
| $_UV --version | |
| # Use Python 3.12 for onnxruntime-gpu compatibility | |
| $_UV venv --python 3.12 | |
| - name: Install dependencies | |
| shell: bash | |
| run: | | |
| set -e | |
| python3 -m uv sync --group dev | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '20' | |
| cache: 'npm' | |
| cache-dependency-path: frontend/package-lock.json | |
| - name: Install frontend dependencies | |
| working-directory: ./frontend | |
| run: npm ci | |
| - name: Run pre-commit | |
| shell: bash | |
| run: | | |
| set -e | |
| python3 -m uv run python --version | |
| python3 -m uv run pre-commit run --all-files | |
| env: | |
| PRE_COMMIT_USE_SYSTEM: true | |
| pytest: | |
| runs-on: ubuntu-latest | |
| needs: pre-commit | |
| if: github.event_name != 'pull_request' || github.event.pull_request.draft == false | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Ensure uv is available | |
| shell: bash | |
| run: | | |
| set -e | |
| if ! command -v uv >/dev/null 2>&1; then | |
| echo "uv not found, installing..." | |
| python3 -m pip install --user uv | |
| echo "$HOME/.local/bin" >> $GITHUB_PATH | |
| fi | |
| # Use python -m uv to be safe | |
| python3 -m uv --version || uv --version | |
| - name: Create virtual environment (if not exists) | |
| shell: bash | |
| run: | | |
| set -e | |
| # 使用 python3 -m uv 确保 uv 命令可用 | |
| _UV="python3 -m uv" | |
| $_UV --version | |
| # Use Python 3.12 for onnxruntime-gpu compatibility | |
| $_UV venv --python 3.12 | |
| - name: Install dependencies | |
| shell: bash | |
| run: | | |
| set -e | |
| python3 -m uv sync --all-extras | |
| - name: Download Deepdoc models | |
| shell: bash | |
| run: | | |
| set -e | |
| python3 -m uv run deepdoc-download-models | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '20' | |
| - name: Install pptxgenjs globally | |
| run: | | |
| set -e | |
| npm install -g pptxgenjs@4.0.1 | |
| - name: Run tests | |
| shell: bash | |
| run: | | |
| set -e | |
| python3 -m uv run python -m pytest tests --ignore=tests/e2e -m "not slow and not postgresql" -n 4 --dist=loadscope -v | |
| - name: Run slow tests | |
| shell: bash | |
| run: | | |
| set -e | |
| python3 -m uv run python -m pytest -m "slow and not postgresql" -v | |
| e2e: | |
| runs-on: ubuntu-latest | |
| needs: pre-commit | |
| if: github.event_name != 'pull_request' || github.event.pull_request.draft == false | |
| timeout-minutes: 30 | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Ensure uv is available | |
| shell: bash | |
| run: | | |
| set -e | |
| if ! command -v uv >/dev/null 2>&1; then | |
| echo "uv not found, installing..." | |
| python3 -m pip install --user uv | |
| echo "$HOME/.local/bin" >> $GITHUB_PATH | |
| fi | |
| python3 -m uv --version || uv --version | |
| - name: Create virtual environment | |
| shell: bash | |
| run: | | |
| set -e | |
| _UV="python3 -m uv" | |
| $_UV --version | |
| $_UV venv --python 3.12 | |
| - name: Install dependencies | |
| shell: bash | |
| run: | | |
| set -e | |
| python3 -m uv sync --group test | |
| - name: Verify Docker | |
| run: docker version | |
| - name: Pull MinIO image | |
| run: docker pull quay.io/minio/minio | |
| - name: Run e2e tests | |
| shell: bash | |
| run: | | |
| set -e | |
| python3 -m uv run python -m pytest tests/e2e --run-special -q | |
| frontend-build: | |
| runs-on: ubuntu-latest | |
| needs: pre-commit | |
| if: github.event_name != 'pull_request' || github.event.pull_request.draft == false | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '20' | |
| cache: 'npm' | |
| cache-dependency-path: frontend/package-lock.json | |
| - name: Install dependencies | |
| working-directory: ./frontend | |
| run: npm ci | |
| - name: Build frontend | |
| working-directory: ./frontend | |
| run: npm run build |