Skip to content

Added a decorator to connect to the heat pump #223

Added a decorator to connect to the heat pump

Added a decorator to connect to the heat pump #223

Workflow file for this run

---
name: Run unit tests
on: # yamllint disable-line rule:truthy
push:
branches:
- main
pull_request_target:
jobs:
pytest:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: "3.11"
- name: Install pytest
run: pip install pytest pytest-cov
- name: Run pytest
# yamllint disable rule:line-length
run: |
set -o pipefail
PYTHONPATH=. pytest --junitxml=pytest.xml --cov-report=term-missing:skip-covered --cov=luxtronik tests/ | tee pytest-coverage.txt
# yamllint enable rule:line-length
- name: Publish pytest coverage as comment
uses: MishaKav/pytest-coverage-comment@main
with:
pytest-coverage-path: ./pytest-coverage.txt
junitxml-path: ./pytest.xml