Show friendly model names for discovered devices #257
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: Core CI | |
| on: | |
| push: | |
| paths: | |
| - "packages/core/**" | |
| - "pyproject.toml" | |
| - "uv.lock" | |
| - ".github/workflows/core-ci.yml" | |
| pull_request: | |
| paths: | |
| - "packages/core/**" | |
| - "pyproject.toml" | |
| - "uv.lock" | |
| - ".github/workflows/core-ci.yml" | |
| jobs: | |
| lint: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v4 | |
| - name: Set up Python | |
| run: uv python install 3.11 | |
| - name: Install core package with dev dependencies | |
| run: uv sync --package shelly-manager-core --extra dev | |
| - name: Run black | |
| run: uv run black --check packages/core/ | |
| - name: Run ruff | |
| run: uv run ruff check packages/core/ | |
| - name: Run mypy | |
| run: uv run mypy packages/core/src/core | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v4 | |
| - name: Set up Python | |
| run: uv python install 3.11 | |
| - name: Install core package with dev dependencies | |
| run: uv sync --package shelly-manager-core --extra dev | |
| - name: Run tests | |
| run: uv run --package shelly-manager-core pytest packages/core/tests/ -v --cov=core | |
| build: | |
| runs-on: ubuntu-latest | |
| needs: [lint, test] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v4 | |
| - name: Set up Python | |
| run: uv python install 3.11 | |
| - name: Install core package | |
| run: uv sync --package shelly-manager-core --no-dev | |
| - name: Build package | |
| run: uv build --package shelly-manager-core | |
| - name: Upload core wheel | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: core-wheel | |
| path: dist/*.whl | |
| retention-days: 1 |