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

Signed-off-by: Rafal Zielinski <sq4ind@gmail.com>
This commit is contained in:
2025-09-28 14:20:04 +01:00
parent 99f112ec99
commit 75f705d4e9
2 changed files with 18 additions and 17 deletions

View File

@@ -1,3 +1,4 @@
# .github/workflows/integration-tests.yml
name: 🧪 Integration Testing
on:
@@ -12,24 +13,23 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.11', '3.12', '3.13']
python-version: ['3.13']
home-assistant-version: ['2025.9.4']
steps:
- name: 📥 Checkout Code
- 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: 🗂️ Get pip cache directory
- name: 🗂️ Cache pip
id: pip-cache-dir
run: echo "dir=$(pip cache dir)" >> $GITHUB_OUTPUT
run: echo "dir=$(pip cache dir)" >> "$GITHUB_OUTPUT"
- name: 📦 Cache pip dependencies
uses: actions/cache@v4
- uses: actions/cache@v4
with:
path: ${{ steps.pip-cache-dir.outputs.dir }}
key: ${{ runner.os }}-pip-${{ matrix.python-version }}-${{ hashFiles('requirements.txt') }}
@@ -37,18 +37,19 @@ jobs:
${{ runner.os }}-pip-${{ matrix.python-version }}-
${{ runner.os }}-pip-
- name: 📦 Install Dependencies
- name: 📦 Install deps
run: |
python -m pip install --upgrade pip
python -m pip install -U pip
pip install -r requirements.txt
- name: 📁 Create custom_components directory
- name: 📁 Ensure custom_components package
run: |
mkdir -p custom_components
touch custom_components/__init__.py
- name: 🧪 Run Integration Tests
run: python -m pytest tests/ -v \
- name: 🧪 Pytest
run: |
python -m pytest tests/ -v \
--cov=custom_components/adguard_hub \
--cov-report=xml \
--cov-report=term-missing \