forked from robinostlund/homeassistant-volkswagencarnet
-
Notifications
You must be signed in to change notification settings - Fork 0
81 lines (65 loc) · 1.76 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
name: "Validate"
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
validate-black:
name: With black
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v3
- name: Set up Python 3.10
uses: actions/setup-python@v3
with:
python-version: "3.10"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install black
- name: Check lint
run: |
black --check --diff --color --line-length=120 .
validate-hassfest:
name: With hassfest
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v3
- name: "Update manifest.json"
run: |
python3 ${{ github.workspace }}/manage/update_manifest.py
- name: Hassfest validation
uses: home-assistant/actions/hassfest@master
validate-hacs:
name: With HACS action
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v3
- name: "Update manifest.json"
run: |
python3 ${{ github.workspace }}/manage/update_manifest.py
- name: HACS Validation
uses: hacs/action@main
with:
category: integration
comment: True
# - uses: actions/setup-python@v3
# name: Setup Python
# - uses: actions/cache@v2
# name: PIP Cache
# with:
# path: |
# ~/.cache/pip
# key: custom-component-ci
# - uses: hacs/action@main
# name: HACS Validation
# with:
# CATEGORY: integration
# - uses: home-assistant/actions/hassfest@master
# name: Hassfest Validation