Import HoloDesktop CLI #4
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: CI | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| permissions: | |
| contents: read | |
| jobs: | |
| python: | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [ubuntu-latest, macos-latest, windows-latest] | |
| runs-on: ${{ matrix.os }} | |
| env: | |
| # Backstop for sub-calls that print before main() reconfigures stdout (cp1252 otherwise). | |
| PYTHONIOENCODING: utf-8 | |
| PYTHONUTF8: "1" | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: astral-sh/setup-uv@v3 | |
| with: | |
| enable-cache: true | |
| - run: uv sync --all-groups | |
| - name: ruff (lint) | |
| run: uv run ruff check . | |
| - name: ruff (format) | |
| run: uv run ruff format --check . | |
| - name: mypy | |
| if: matrix.os == 'ubuntu-latest' | |
| run: uv run mypy src/ | |
| - name: pytest | |
| run: uv run pytest --cov --cov-report=xml | |
| - name: upload coverage to Codecov | |
| if: matrix.os == 'ubuntu-latest' | |
| uses: codecov/codecov-action@v5 | |
| with: | |
| files: ./coverage.xml | |
| token: ${{ secrets.CODECOV_TOKEN }} | |
| fail_ci_if_error: false | |
| - name: examples | |
| if: matrix.os == 'ubuntu-latest' | |
| run: scripts/ci_examples.sh | |
| - name: smoke imports + CLI | |
| run: | | |
| uv run python -c "import holo_desktop; import holo_desktop.cli.mcp; import holo_desktop.cli.serve; import holo_desktop.cli.acp; import holo_desktop.cli.hosts; import holo_desktop.cli; import holo_desktop.agent_client; from holo_desktop import __version__; print(__version__)" | |
| uv run holo install list | |
| uv run holo install cursor |