generated from ludeeus/integration_blueprint
-
Notifications
You must be signed in to change notification settings - Fork 47
61 lines (54 loc) · 1.39 KB
/
push.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
57
58
59
60
61
name: Push actions
on:
push:
branches:
- master
- dev
env:
DEFAULT_PYTHON: "3.10"
jobs:
validate:
runs-on: "ubuntu-latest"
name: Validate
steps:
- uses: "actions/checkout@v3"
- name: HACS validation
uses: "hacs/action@main"
with:
category: "integration"
ignore: brands
- name: Hassfest validation
uses: "home-assistant/actions/hassfest@master"
style:
runs-on: "ubuntu-latest"
name: Check style formatting
steps:
- uses: "actions/checkout@v3"
- uses: "actions/setup-python@v4"
with:
python-version: ${{ env.DEFAULT_PYTHON }}
- run: python3 -m pip install black
- run: black .
tests:
runs-on: "ubuntu-latest"
name: Run tests
steps:
- name: Check out code from GitHub
uses: "actions/checkout@v3"
- name: Setup Python
uses: "actions/setup-python@v4"
with:
python-version: ${{ env.DEFAULT_PYTHON }}
- name: Install requirements
run: python3 -m pip install -r requirements_test.txt
- name: Run tests
run: |
pytest \
-qq \
--timeout=30 \
--durations=10 \
-n auto \
--cov custom_components.meross_lan \
-o console_output_style=count \
-p no:sugar \
tests