Skip to content

Commit

Permalink
👌 IMPROVE: Test coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
unl0ck committed Jan 31, 2025
1 parent a97f43a commit b34b618
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 2 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/builder.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,14 @@ jobs:
run: |
cd ./${{ matrix.addon }}/GridboxConnector
python -m unittest discover -p '*_test.py'
coverage xml -o coverage.xml
- name: Get Cover
uses: orgoro/[email protected]
if: env.BUILD_ARGS != '--test'
with:
coverageFile: ./${{ matrix.addon }}/GridboxConnector/coverage.xml
token: ${{ secrets.TOKEN }}

- name: Login to GitHub Container Registry
if: env.BUILD_ARGS != '--test'
Expand Down
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
__pycache__
.pytest_cache
.history
.venv
.venv
.coverage
6 changes: 6 additions & 0 deletions GridboxConnectorAddon-edge/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
<!-- https://developers.home-assistant.io/docs/add-ons/presentation#keeping-a-changelog -->

## 2.11.59

### 🚀 Added

- test coverage report action

## 2.11.58

### 🔨 Fixed
Expand Down
4 changes: 3 additions & 1 deletion GridboxConnectorAddon-edge/GridboxConnector/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,6 @@ requests==2.32.3
viessmann-gridbox-connector==1.7.2
logfire==3.3.0
opentelemetry-instrumentation-requests==0.50b0
configparser==7.1.0
configparser==7.1.0
coverage==7.6.10
bump-my-version==0.30.1

0 comments on commit b34b618

Please sign in to comment.