fix: integration tests fixes
Signed-off-by: Rafal Zielinski <sq4ind@gmail.com>
This commit is contained in:
@@ -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,19 +37,20 @@ 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 \
|
||||
--cov=custom_components/adguard_hub \
|
||||
--cov-report=xml \
|
||||
--cov-report=term-missing \
|
||||
--asyncio-mode=auto
|
||||
- name: 🧪 Pytest
|
||||
run: |
|
||||
python -m pytest tests/ -v \
|
||||
--cov=custom_components/adguard_hub \
|
||||
--cov-report=xml \
|
||||
--cov-report=term-missing \
|
||||
--asyncio-mode=auto
|
||||
|
@@ -2,4 +2,4 @@ homeassistant==2025.9.4
|
||||
pytest
|
||||
pytest-homeassistant-custom-component
|
||||
pytest-asyncio
|
||||
pytest-cov
|
||||
pytest-cov
|
Reference in New Issue
Block a user