Added a decorator to connect to the heat pump #223
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
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 |