Skip to content

Bump Verstion 1.7.0 #127

Bump Verstion 1.7.0

Bump Verstion 1.7.0 #127

Workflow file for this run

name: Run Python UnitTests
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
workflow_dispatch:
jobs:
test:
runs-on: ubuntu-latest
permissions:
checks: write
pull-requests: write
steps:
- name: Checkout Repo Code
uses: actions/checkout@v4
- name: Install Python
uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r src/abbfreeathome/dev-requirements.txt
- name: Install abbfreeathome Python Package
run: |
pip install .
- name: Test with pytest
run: |
pytest \
--cov=. \
--cov-report=xml:coverage/coverage.xml \
--junitxml=junit/test-results.xml
- name: Code Coverage Summary Report
id: coverage
uses: irongut/[email protected]
with:
filename: coverage/coverage.xml
badge: true
format: markdown
output: both
fail_below_min: true
thresholds: '100 100'
- name: Write Coverage to Job Summary
if: success() || steps.coverage.conclusion == 'failure'
run: cat code-coverage-results.md >> $GITHUB_STEP_SUMMARY
- name: Publish Test Report
uses: mikepenz/[email protected]
if: success() || failure()
with:
report_paths: junit/test-results.xml
detailed_summary: true
comment: false