refactor: another refactor
Some checks failed
Integration Testing / Integration Tests (2024.12.0, 3.11) (push) Failing after 27s
Integration Testing / Integration Tests (2024.12.0, 3.12) (push) Failing after 56s
Integration Testing / Integration Tests (2024.12.0, 3.13) (push) Failing after 1m38s
Integration Testing / Integration Tests (2025.9.4, 3.11) (push) Failing after 19s
Integration Testing / Integration Tests (2025.9.4, 3.12) (push) Failing after 20s
Integration Testing / Integration Tests (2025.9.4, 3.13) (push) Failing after 25s
Code Quality Check / Code Quality Analysis (push) Failing after 20s
Code Quality Check / Security Analysis (push) Failing after 21s
Some checks failed
Integration Testing / Integration Tests (2024.12.0, 3.11) (push) Failing after 27s
Integration Testing / Integration Tests (2024.12.0, 3.12) (push) Failing after 56s
Integration Testing / Integration Tests (2024.12.0, 3.13) (push) Failing after 1m38s
Integration Testing / Integration Tests (2025.9.4, 3.11) (push) Failing after 19s
Integration Testing / Integration Tests (2025.9.4, 3.12) (push) Failing after 20s
Integration Testing / Integration Tests (2025.9.4, 3.13) (push) Failing after 25s
Code Quality Check / Code Quality Analysis (push) Failing after 20s
Code Quality Check / Security Analysis (push) Failing after 21s
Signed-off-by: Rafal Zielinski <sq4ind@gmail.com>
This commit is contained in:
@@ -23,17 +23,48 @@ jobs:
|
||||
- name: Install Dependencies
|
||||
run: |
|
||||
python -m pip install --upgrade pip
|
||||
pip install flake8 black isort
|
||||
pip install homeassistant==2025.9.4
|
||||
pip install -r requirements-dev.txt
|
||||
|
||||
- name: Code Formatting Check
|
||||
- name: Code Formatting Check (Black)
|
||||
run: |
|
||||
black --check custom_components/ || echo "Code formatting issues found"
|
||||
black --check custom_components/ tests/
|
||||
|
||||
- name: Import Sorting
|
||||
- name: Import Sorting Check (isort)
|
||||
run: |
|
||||
isort --check-only custom_components/ || echo "Import sorting issues found"
|
||||
isort --check-only --diff custom_components/ tests/
|
||||
|
||||
- name: Linting
|
||||
- name: Linting (flake8)
|
||||
run: |
|
||||
flake8 custom_components/ --count --select=E9,F63,F7,F82 --show-source --statistics || echo "Critical linting issues found"
|
||||
flake8 custom_components/ tests/
|
||||
|
||||
- name: Type Checking (mypy)
|
||||
run: |
|
||||
mypy custom_components/adguard_hub/ --ignore-missing-imports
|
||||
continue-on-error: true
|
||||
|
||||
security-scan:
|
||||
name: Security Analysis
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout Code
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Set up Python
|
||||
uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: '3.13'
|
||||
|
||||
- name: Install Security Tools
|
||||
run: |
|
||||
python -m pip install --upgrade pip
|
||||
pip install bandit safety
|
||||
|
||||
- name: Security Check (Bandit)
|
||||
run: |
|
||||
bandit -r custom_components/ -ll
|
||||
|
||||
- name: Dependency Security Check (Safety)
|
||||
run: |
|
||||
pip install -r requirements.txt
|
||||
safety check
|
||||
|
Reference in New Issue
Block a user