Skip to content

Commit 919df3b

Browse files
geofffranksclaude
andcommitted
ci: add GitHub Actions workflow to run tests on push and PR
Mirrors utec-py's test.yml — single Python 3.12 job that installs requirements-test.txt and runs pytest with coverage. The coverage gate (fail_under=85 in pyproject.toml) is enforced automatically. Pins the integration runtime dep (utec_py_LF2b2w) into requirements-test.txt so CI installs the same source the manifest pulls from at runtime. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 80d17de commit 919df3b

2 files changed

Lines changed: 25 additions & 0 deletions

File tree

.github/workflows/test.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Tests
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
8+
jobs:
9+
test:
10+
runs-on: ubuntu-latest
11+
strategy:
12+
matrix:
13+
python-version: ["3.12"]
14+
steps:
15+
- uses: actions/checkout@v4
16+
- uses: actions/setup-python@v5
17+
with:
18+
python-version: ${{ matrix.python-version }}
19+
cache: pip
20+
- run: pip install -r requirements-test.txt
21+
- run: pytest --cov --cov-report=term-missing

requirements-test.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,7 @@ pytest-cov>=5.0
44
coverage[toml]>=7.4
55
aioresponses>=0.7.6
66
pytest-homeassistant-custom-component>=0.13.200
7+
8+
# Integration runtime dep — must match manifest.json so the test suite
9+
# exercises the same utec_py source as the integration.
10+
utec_py_LF2b2w @ git+https://github.com/geofffranks/utec-py.git@main

0 commit comments

Comments
 (0)