fix: fixes
Some checks failed
Integration Testing / Test Integration (2025.9.4, 3.13) (push) Failing after 38s
Code Quality Check / Code Quality Analysis (push) Successful in 15s

Signed-off-by: Rafal Zielinski <sq4ind@gmail.com>
This commit is contained in:
2025-09-28 15:58:07 +01:00
parent e0edf6f865
commit 86f60e72b7
21 changed files with 147 additions and 466 deletions

View File

@@ -1,4 +1,4 @@
name: 🧪 Integration Testing
name: Integration Testing
on:
push:
@@ -8,27 +8,27 @@ on:
jobs:
test-integration:
name: 🔧 Test Integration (${{ matrix.home-assistant-version }}, ${{ matrix.python-version }})
name: Test Integration
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.13']
home-assistant-version: ['2025.9.4']
python-version: ["3.13"]
home-assistant-version: ["2025.9.4"]
steps:
- name: 📥 Checkout
- name: Checkout
uses: actions/checkout@v4
- name: 🐍 Set up Python ${{ matrix.python-version }}
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: 🗂️ Cache pip dependencies
- name: Cache pip dependencies
id: pip-cache-dir
run: echo "dir=$(pip cache dir)" >> "$GITHUB_OUTPUT"
- name: 📦 Cache pip
- name: Cache pip
uses: actions/cache@v4
with:
path: ${{ steps.pip-cache-dir.outputs.dir }}
@@ -37,26 +37,20 @@ jobs:
${{ runner.os }}-pip-${{ matrix.python-version }}-
${{ runner.os }}-pip-
- name: 📦 Install Python dependencies
- name: Install Python dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: 📁 Ensure custom_components package structure
- name: Ensure package structure
run: |
mkdir -p custom_components
touch custom_components/__init__.py
- name: 🧪 Run pytest with coverage
- name: Run tests
run: |
python -m pytest tests/ -v \
--cov=custom_components/adguard_hub \
--cov-report=xml \
--cov-report=term-missing \
--asyncio-mode=auto
python -m pytest tests/ -v --cov=custom_components/adguard_hub --cov-report=term-missing --asyncio-mode=auto
- name: 📊 Upload coverage reports
- name: Upload coverage
if: always()
run: |
echo "Coverage report generated"
ls -la coverage.xml || echo "No coverage.xml found"
run: echo "Tests completed"