Parent Issue: #4 Zero Test Coverage
Objective
Set up GitHub Actions CI/CD workflow to run tests automatically on every push/PR with coverage reporting.
Workflow Requirements
Test Execution
Coverage Reporting
Code Quality Checks
Workflow Configuration
# .github/workflows/test.yml
name: Test
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.11", "3.12", "3.13"]
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
pip install -r requirements.txt
pip install pytest pytest-cov pytest-homeassistant-custom-component
- name: Run tests
run: pytest --cov=custom_components.riverlink --cov-report=xml
- name: Upload coverage
uses: codecov/codecov-action@v4
Additional Workflows
Release Workflow
Lint Workflow
Success Criteria
References
Priority
🟡 Medium - Automation infrastructure
Parent Issue: #4 Zero Test Coverage
Objective
Set up GitHub Actions CI/CD workflow to run tests automatically on every push/PR with coverage reporting.
Workflow Requirements
Test Execution
Coverage Reporting
Code Quality Checks
Workflow Configuration
Additional Workflows
Release Workflow
Lint Workflow
Success Criteria
References
Priority
🟡 Medium - Automation infrastructure