Skip to content

Tests and CI: domain layer, pytest workflow, validate/ci split#82

Open
alepee wants to merge 5 commits intomainfrom
tests-coverage
Open

Tests and CI: domain layer, pytest workflow, validate/ci split#82
alepee wants to merge 5 commits intomainfrom
tests-coverage

Conversation

@alepee
Copy link
Owner

@alepee alepee commented Feb 2, 2026

Summary

  • Add domain layer (src/degree_days) with HDD/CDD calculation logic and unit tests
  • Add GitHub Actions: Validate (HACS + hassfest, runs on schedule), CI (Ruff lint + Pytest, on push/PR)
  • Remove release-drafter workflow and config
  • Remove standalone lint.yml and tests.yml (consolidated into validate + ci)

@alepee alepee self-assigned this Feb 2, 2026
claude and others added 5 commits February 5, 2026 10:30
- Extract pure calculation logic into domain.py (no HA dependencies)
- Create src/degree_days/ package for isolated testing
- Add 32 unit tests covering:
  - Basic HDD/CDD calculations
  - Constant and varying temperatures
  - Negative temperatures (winter scenarios)
  - Fahrenheit support
  - Edge cases (sparse data, short intervals)
  - Real-world scenarios (French winter/summer days)
- Refactor calculations.py to import from domain.py
- Add pytest configuration in pyproject.toml
- Update requirements-dev.txt with pytest dependencies

https://claude.ai/code/session_01Pe2khoXmq3M1RQnHWjw79A
…+ tests), remove release-drafter

Co-authored-by: Cursor <cursoragent@cursor.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants