-
Notifications
You must be signed in to change notification settings - Fork 19
57 lines (50 loc) · 1.24 KB
/
pushpull.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
---
name: Push/Pull actions
on: # yamllint disable-line rule:truthy
push:
branches:
- master
pull_request:
schedule:
- cron: "0 0 * * *"
jobs:
hacs:
name: HACS Action
runs-on: "ubuntu-latest"
steps:
- uses: "actions/checkout@v2"
- name: HACS Action
uses: "hacs/action@main"
with:
category: "integration"
ignore: brands issues
validate:
runs-on: "ubuntu-latest"
name: Validate
steps:
- uses: "actions/checkout@v2"
- name: Hassfest validation
uses: "home-assistant/actions/hassfest@master"
style:
runs-on: "ubuntu-latest"
name: Check style formatting
steps:
- uses: "actions/checkout@v2"
- uses: "actions/setup-python@v1"
with:
python-version: "3.x"
- run: python3 -m pip install black
- run: black .
- run: |
pip3 install flake8 flake8-docstrings
flake8 --version
flake8 .
# - run: |
# pip3 install isort
# # isort --version
# isort . --check-only -v
# - run: |
# pip3 install yamllint
# yamllint --version
# yamllint .
- run: if git ls-files | xargs file | grep CRLF; then exit 1; fi