-
Notifications
You must be signed in to change notification settings - Fork 1
39 lines (33 loc) · 1 KB
/
validate-changes.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
name: "Validate Changes"
on: [ push, pull_request, workflow_dispatch ]
jobs:
ha_validate:
runs-on: "ubuntu-latest"
name: HA validation
steps:
- name: Check out code from GitHub
uses: "actions/checkout@v4"
- name: Setup Python
uses: "actions/setup-python@v5"
with:
python-version: "3.12"
- name: HACS validation
uses: hacs/action@main
with:
CATEGORY: integration
- name: Hassfest validation
uses: home-assistant/actions/hassfest@master
tests:
runs-on: "ubuntu-latest"
name: tests
steps:
- name: Check out code from GitHub
uses: "actions/checkout@v4"
- name: Setup Python
uses: "actions/setup-python@v5"
with:
python-version: "3.12"
- name: Install requirements
run: python3 -m pip install -r requirements.txt
- name: Run tests
run: pytest --cov custom_components.phoniebox -o console_output_style=count -p no:sugar -qq -n auto