--- services: homeassistant: build: . container_name: homeassistant-ixfield-test ports: - "8123:8123" volumes: - ./.data/config:/config - ./config/configuration.yaml:/config/configuration.yaml - ./custom_components/ixfield:/config/custom_components/ixfield environment: - TZ=Europe/Bratislava lint: image: python:3.11-slim container_name: ixfield-lint volumes: - ./custom_components:/workspace/custom_components - ./requirements-dev.txt:/workspace/requirements-dev.txt - ./pyproject.toml:/workspace/pyproject.toml - ./setup.cfg:/workspace/setup.cfg working_dir: /workspace command: > sh -c " pip install -r requirements-dev.txt && flake8 custom_components/ && black --check --diff custom_components/ && isort --check-only --diff custom_components/ && echo 'Linting completed successfully!' " test: build: context: . dockerfile: Dockerfile.test container_name: ixfield-test volumes: - .:/workspace - ./custom_components:/workspace/custom_components - ./tests:/workspace/tests working_dir: /workspace environment: - PYTHONPATH=/workspace command: > sh -c " python -m pytest tests/ -v --cov=custom_components/ixfield --cov-report=term-missing --cov-report=html "