Files
adguard-control-hub/.gitea/workflows/integration-test.yml
Rafal Zielinski 4553eb454a
Some checks failed
🧪 Integration Testing / 🔧 Test Integration (2025.9.4, 3.13) (push) Failing after 24s
refactor: Refactoring most of the project
Signed-off-by: Rafal Zielinski <sq4ind@gmail.com>
2025-09-28 15:34:46 +01:00

56 lines
1.4 KiB
YAML

# .github/workflows/integration-tests.yml
name: 🧪 Integration Testing
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
test-integration:
name: 🔧 Test Integration
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.13']
home-assistant-version: ['2025.9.4']
steps:
- name: 📥 Checkout
uses: actions/checkout@v4
- name: 🐍 Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: 🗂️ Cache pip
id: pip-cache-dir
run: echo "dir=$(pip cache dir)" >> "$GITHUB_OUTPUT"
- uses: actions/cache@v4
with:
path: ${{ steps.pip-cache-dir.outputs.dir }}
key: ${{ runner.os }}-pip-${{ matrix.python-version }}-${{ hashFiles('requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-${{ matrix.python-version }}-
${{ runner.os }}-pip-
- name: 📦 Install deps
run: |
python -m pip install -U pip
pip install -r requirements.txt
- name: 📁 Ensure custom_components package
run: |
mkdir -p custom_components
touch custom_components/__init__.py
- name: 🧪 Pytest
run: |
python -m pytest tests/ -v \
--cov=custom_components/adguard_hub \
--cov-report=xml \
--cov-report=term-missing \
--asyncio-mode=auto