name: Validate on: push: pull_request: schedule: - cron: "0 0 * * *" jobs: validate: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - name: Set up Python uses: actions/setup-python@v4 with: python-version: "3.x" - name: Install dependencies run: | python -m pip install --upgrade pip pip install pytest pylint - name: Run tests run: | pytest - name: Lint with pylint run: | pylint custom_components/ha_text_ai/*.py