Pin ruff-action to v4.1.0 — it publishes no floating v4 tag #109
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: Validate | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| schedule: | |
| - cron: "0 0 * * *" | |
| jobs: | |
| hacs: | |
| name: Validate with HACS Action | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v7 | |
| - name: HACS validation | |
| uses: hacs/action@main | |
| with: | |
| category: integration | |
| hassfest: | |
| name: Validate with hassfest | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v7 | |
| - name: Hassfest validation | |
| uses: home-assistant/actions/hassfest@master | |
| tests: | |
| name: Run unit tests | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v7 | |
| - name: Set up Python | |
| uses: actions/setup-python@v7 | |
| with: | |
| python-version: "3.13" | |
| - name: Install dependencies | |
| run: pip install -r requirements-dev.txt | |
| - name: Run tests | |
| run: pytest tests/ -v | |
| ruff: | |
| name: Lint with Ruff | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v7 | |
| - name: Ruff | |
| uses: astral-sh/ruff-action@v4.1.0 |