Skip to content

Check

Check #1039

Workflow file for this run

name: Check
on:
pull_request:
push:
branches:
- main
schedule:
- cron: "33 3 * * *"
jobs:
hacs:
runs-on: ubuntu-latest
steps:
- uses: hacs/action@main
with:
category: integration
ignore: brands information
hassfest:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: home-assistant/actions/hassfest@master
lint:
if: github.event_name != 'schedule'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
fetch-depth: 0
- uses: actions/cache@v3
with:
path: |
~/.cache/pip
venv
key: >-
lint-${{ hashFiles(
'.github/requirements.txt',
'requirements/dev-requirements.txt'
) }}
restore-keys: lint-
- name: Install dependencies
run: |
set -euxo pipefail
python3 -m venv venv
venv/bin/python3 -m pip install -Ur .github/requirements.txt
- run: venv/bin/gitlint --commits "origin/$GITHUB_BASE_REF..HEAD"
if: github.event_name == 'pull_request'
- uses: pre-commit/[email protected]