-
-
Notifications
You must be signed in to change notification settings - Fork 4
54 lines (50 loc) · 1.45 KB
/
validate.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
name: Validate
on:
workflow_dispatch:
schedule:
- cron: "0 0 * * *"
jobs:
hassfest: # https://developers.home-assistant.io/blog/2020/04/16/hassfest
name: "Hassfest Validation"
runs-on: "ubuntu-latest"
steps:
- name: "Checkout the repository"
uses: "actions/checkout@v4"
- name: "Run hassfest validation"
uses: "home-assistant/actions/hassfest@master"
hacs: # https://github.com/hacs/action
name: "HACS Validation"
runs-on: "ubuntu-latest"
steps:
- uses: "actions/checkout@v4"
- name: HACS Action
uses: "hacs/action@main"
with:
category: "integration"
tests:
runs-on: "ubuntu-latest"
strategy:
matrix:
python-version:
- "3.12"
name: Run tests
steps:
- name: Check out code from GitHub
uses: "actions/checkout@v4"
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements-test.txt
- name: Check with RUFF
run: |
python3 -m ruff check custom_components/unifi_voucher
- name: Lint with pydocstyle
run: |
pydocstyle custom_components/unifi_voucher
- name: Lint with isort
run: |
isort custom_components/unifi_voucher