Skip to content

Bump https://github.com/astral-sh/ruff-pre-commit (#340) #298

Bump https://github.com/astral-sh/ruff-pre-commit (#340)

Bump https://github.com/astral-sh/ruff-pre-commit (#340) #298

Workflow file for this run

name: CI
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Check out repository
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Set up uv
uses: astral-sh/setup-uv@c771a70e6277c0a99b617c7a806ffedaca235ff9 # v9.0.0
with:
enable-cache: true
activate-environment: true
python-version: 3.14
- name: Install dependencies
run: uv sync --frozen
- name: Lint
run: uv run ruff check .
- name: Check format
run: uv run ruff format --check .
- name: Check types
run: uv run ty check custom_components/meteo_imgw_pib
- name: Run prek
run: |
uv run prek run \
end-of-file-fixer \
trailing-whitespace \
check-added-large-files \
check-yaml \
check-json \
check-toml \
mixed-line-ending \
--all-files
test:
name: Test
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Check out repository
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
fetch-depth: 2
- name: Set up uv
uses: astral-sh/setup-uv@c771a70e6277c0a99b617c7a806ffedaca235ff9 # v9.0.0
with:
enable-cache: true
activate-environment: true
python-version: 3.14
- name: Install dependencies
run: uv sync --frozen
- name: Run tests
run: uv run pytest --timeout=30 --cov=custom_components/meteo_imgw_pib --cov-report=xml --error-for-skips
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@fb8b3582c8e4def4969c97caa2f19720cb33a72f # v7.0.0
with:
token: ${{ secrets.CODECOV_TOKEN }}