Skip to content

PIP: Bump homeassistant from 2025.2.4 to 2025.2.5 in /.github #257

PIP: Bump homeassistant from 2025.2.4 to 2025.2.5 in /.github

PIP: Bump homeassistant from 2025.2.4 to 2025.2.5 in /.github #257

Workflow file for this run

name: SwatchTime / Validate
on:
push:
pull_request:
jobs:
changes:
name: πŸ‘€ Source / Changed
runs-on: ubuntu-latest
outputs:
src: ${{ steps.changes.outputs.src }}
python: ${{ steps.changes.outputs.python }}
yaml: ${{ steps.changes.outputs.yaml }}
steps:
- name: ⬇️ Check out Repo
uses: actions/checkout@v4
- name: βš™οΈ Check for changes
uses: dorny/paths-filter@v3
id: changes
with:
filters: |
src:
- 'custom_components/**'
python:
- '**.py'
- 'requirements.txt'
yaml:
- '**.yaml'
- '**.yml'
python:
name: 🧹 Python Ruff
if: ${{ needs.changes.outputs.python == 'true' }}
needs:
- changes
runs-on: ubuntu-latest
steps:
- name: ⬇️ Check out Repo
uses: actions/checkout@v4
- name: 🐍 Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.x"
- name: πŸ“¦ Install requirements
run: python3 -m pip install -r .github/requirements.txt
- name: βš™οΈ Lint
run: python3 -m ruff check .
- name: πŸ’… Format
run: python3 -m ruff format . --check
yamllint:
name: 🧹 Yaml Lint
if: ${{ needs.changes.outputs.yaml == 'true' }}
needs:
- changes
runs-on: ubuntu-latest
steps:
- name: ‡️ Check out Repo
uses: actions/checkout@v4
- name: πŸš€ Run yamllint
run: yamllint --strict .
ha:
name: πŸ‘» HA Validation (hassfest)
if: ${{ needs.changes.outputs.src == 'true' }}
needs:
- changes
runs-on: ubuntu-latest
steps:
- name: ‡️ Check out Repo
uses: "actions/checkout@v4"
- name: πŸš€ Run HassFest
uses: "home-assistant/actions/hassfest@master"
hacs:
name: 🏠 HACS Validation
if: ${{ needs.changes.outputs.src == 'true' }}
needs:
- changes
runs-on: ubuntu-latest
steps:
- name: ‡️ Check out Repo
uses: "actions/checkout@v4"
- name: πŸš€ Run HACS Validation
uses: "hacs/action@main"
with: {category: "integration"}
ci-status:
name: 🎭 Status
runs-on: ubuntu-latest
needs:
- ha
- hacs
if: always()
steps:
- name: πŸŽ‰ Success
if: ${{ !(contains(needs.*.result, 'failure')) }}
run: exit 0
- name: ❌ Failure
if: ${{ contains(needs.*.result, 'failure') }}
run: exit 1