Skip to content

Bump astral-sh/setup-uv from 4.2.0 to 5.1.0 #610

Bump astral-sh/setup-uv from 4.2.0 to 5.1.0

Bump astral-sh/setup-uv from 4.2.0 to 5.1.0 #610

Workflow file for this run

name: "Lint and test"
on:
push:
branches:
- "main"
pull_request:
branches:
- "main"
jobs:
hassfest: # https://developers.home-assistant.io/blog/2020/04/16/hassfest
name: "Hassfest Validation"
runs-on: "ubuntu-latest"
steps:
- name: "Checkout the repository"
uses: "actions/[email protected]"
- name: "Run hassfest validation"
uses: "home-assistant/actions/hassfest@master"
hacs: # https://github.com/hacs/action
name: "HACS Validation"
runs-on: "ubuntu-latest"
steps:
- name: "Checkout the repository"
uses: "actions/[email protected]"
- name: "Run HACS validation"
uses: "hacs/action@main"
with:
category: "integration"
# Remove this 'ignore' key when you have added brand images for your integration to https://github.com/home-assistant/brands
ignore: "brands"
ruff:
name: "Ruff"
runs-on: "ubuntu-latest"
steps:
- name: "Checkout the repository"
uses: "actions/[email protected]"
- name: Install uv
uses: astral-sh/setup-uv@887a942a15af3a7626099df99e897a18d9e5ab3a # v3
- name: Set up Python
run: uv python install 3.12
- name: Install the project
run: uv sync --all-extras --dev
- name: "Run ruff"
run: uv run ruff check .
- name: "Format with ruff"
run: uv run ruff format . --check
tests:
runs-on: "ubuntu-latest"
name: Run tests
steps:
- name: Check out code from GitHub
uses: "actions/[email protected]"
- name: Install uv
uses: astral-sh/setup-uv@887a942a15af3a7626099df99e897a18d9e5ab3a # v3
- name: Set up Python
run: uv python install 3.11
- name: Install the project
run: uv sync --all-extras --dev
- name: "Run ruff"
run: uv run ruff check .
- name: "Format with ruff"
run: uv run ruff format . --check
- name: Run tests
run: |
uv run pytest \
-qq \
--timeout=9 \
--durations=10 \
-n auto \
--cov custom_components.stiebel_eltron_isg \
-o console_output_style=count \
-p no:sugar \
tests