fix: fixes
Some checks failed
🧪 Integration Testing / 🔧 Test Integration (2025.9.4, 3.13) (push) Failing after 19s
🛡️ Code Quality & Security Check / 🔍 Code Quality Analysis (push) Failing after 19s

Signed-off-by: Rafal Zielinski <sq4ind@gmail.com>
This commit is contained in:
2025-09-28 15:46:21 +01:00
parent 4553eb454a
commit e0edf6f865
11 changed files with 196 additions and 695 deletions

View File

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