-
Notifications
You must be signed in to change notification settings - Fork 33
56 lines (48 loc) · 1.4 KB
/
ci.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
46
47
48
49
50
51
52
53
54
55
56
# This workflow will install Python dependencies, run tests and lint with a single version of Python
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
name: CI
on:
push:
branches:
- main
pull_request: ~
schedule:
- cron: "0 0 * * *"
env:
DEFAULT_PYTHON: "3.11"
jobs:
validate-hacs:
runs-on: "ubuntu-latest"
name: Validate with HACS
steps:
- uses: "actions/checkout@v3"
- name: HACS validation
uses: "hacs/action@main"
with:
category: "integration"
validate-hassfest:
runs-on: "ubuntu-latest"
name: Validate with Hassfest
steps:
- uses: "actions/checkout@v3"
- name: Hassfest validation
uses: "home-assistant/actions/hassfest@master"
code-quality:
runs-on: "ubuntu-latest"
name: Check code quality
steps:
- uses: "actions/checkout@v3"
- name: Set up Python ${{ env.DEFAULT_PYTHON }}
id: python
uses: actions/setup-python@v4
with:
python-version: ${{ env.DEFAULT_PYTHON }}
cache: "pip"
- name: Install dependencies
run: |
pip install -r requirements.txt
# Following steps cannot run by pre-commit.ci as repo = local
- name: Run mypy
run: mypy custom_components/
- name: Pylint review
run: pylint custom_components/