Some checks failed
🧪 Integration Testing / 🔧 Test Integration (2023.12.0, 3.11) (push) Successful in 2m11s
🧪 Integration Testing / 🔧 Test Integration (2023.12.0, 3.12) (push) Successful in 2m2s
🧪 Integration Testing / 🔧 Test Integration (2024.1.0, 3.11) (push) Successful in 1m4s
🧪 Integration Testing / 🔧 Test Integration (2024.1.0, 3.12) (push) Successful in 1m19s
🛡️ Code Quality & Security Check / 🔍 Code Quality Analysis (push) Failing after 56s
Signed-off-by: Rafal Zielinski <sq4ind@gmail.com>
34 lines
924 B
YAML
34 lines
924 B
YAML
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.11', '3.12']
|
|
home-assistant-version: ['2023.12.0', '2024.1.0']
|
|
|
|
steps:
|
|
- name: 📥 Checkout Code
|
|
uses: actions/checkout@v4
|
|
|
|
- name: 🐍 Set up Python ${{ matrix.python-version }}
|
|
uses: actions/setup-python@v4
|
|
with:
|
|
python-version: ${{ matrix.python-version }}
|
|
|
|
- name: 📦 Install Home Assistant ${{ matrix.home-assistant-version }}
|
|
run: |
|
|
pip install homeassistant==${{ matrix.home-assistant-version }}
|
|
pip install pytest pytest-homeassistant-custom-component
|
|
|
|
- name: 🧪 Run Integration Tests
|
|
run: |
|
|
python -m pytest tests/ -v --cov=custom_components/adguard_hub --cov-report=xml |