-
Notifications
You must be signed in to change notification settings - Fork 3
45 lines (36 loc) · 957 Bytes
/
pull_requests.yml
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
name: Pull requests
on: pull_request
concurrency:
group: pull-requests-${{ github.ref }}
cancel-in-progress: true
jobs:
lint:
name: "Linting"
runs-on: "ubuntu-latest"
steps:
- name: "Clone repo"
uses: actions/checkout@v3
- name: "Set up Python"
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: "Install Python dependencies"
run: pip install black flake8
- name: "Run linters"
uses: wearerequired/lint-action@v2
with:
auto_fix: false
black: true
flake8: true
- name: "Hassfest"
uses: "home-assistant/actions/hassfest@master"
validate:
name: "Validate hacs"
runs-on: "ubuntu-latest"
steps:
- name: "Clone repo"
uses: actions/checkout@v3
- name: "HACS validation"
uses: hacs/action@main
with:
category: "integration"