--- when: - event: [pull_request, tag] - event: [push, manual] branch: - ${CI_REPO_DEFAULT_BRANCH} variables: - &pytest_base depends_on: [yamllint] commands: - | output=$(hass -c . --script check_config 2>&1) filtered_output=$(echo "$output" | grep "ERROR" | grep -v "Unknown device" || true) if [ -n "$filtered_output" ]; then echo "$filtered_output" exit 1 fi environment: HA_RECORDER_DB_URL: dummy PY_COLORS: "1" steps: - name: yamllint image: quay.io/thegeeklab/alpine-tools commands: - yamllint --config-file .yamllint --strict . - name: hassio-dev image: ghcr.io/home-assistant/home-assistant:dev <<: *pytest_base - name: hassio-latest image: ghcr.io/home-assistant/home-assistant:latest <<: *pytest_base