Skip to content

Commit cbfdbae

Browse files
committed
add github workflow to run tests
1 parent 13670d0 commit cbfdbae

1 file changed

Lines changed: 32 additions & 0 deletions

File tree

.github/workflows/tests.yaml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: HomeAssistant Tests
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches:
9+
- main
10+
11+
jobs:
12+
test:
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- name: Check out code
17+
uses: actions/checkout@v4
18+
19+
- name: Set up Python 3.13
20+
uses: actions/setup-python@v5
21+
with:
22+
python-version: "3.13"
23+
cache: 'pip' # Speeds up subsequent runs by caching dependencies
24+
25+
- name: Install dependencies
26+
run: |
27+
python -m pip install --upgrade pip
28+
pip install pytest pytest-asyncio pytest-homeassistant-custom-component homeassistant aioresponses
29+
30+
- name: Run Pytest
31+
run: |
32+
pytest tests/

0 commit comments

Comments
 (0)