diff --git a/.github/workflows/validate.yml b/.github/workflows/validate.yml new file mode 100644 index 0000000..5fbdead --- /dev/null +++ b/.github/workflows/validate.yml @@ -0,0 +1,34 @@ +name: Validate integration + +on: + pull_request: + push: + branches: [main] + +permissions: + contents: read + +jobs: + validate: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - uses: actions/setup-python@v5 + with: + python-version: "3.13" + + - name: Run dependency-free regression tests + run: python -m unittest discover -s tests -v + + - name: Check Python syntax + run: | + find custom_components -name '*.py' -print0 | \ + xargs -0 -n1 python -c 'import ast, sys; ast.parse(open(sys.argv[1], encoding="utf-8").read())' + + - uses: actions/setup-node@v4 + with: + node-version: "22" + + - name: Check chat-card syntax + run: node --check custom_components/openclaw/www/openclaw-chat-card.js diff --git a/custom_components/openclaw/__pycache__/api.cpython-312.pyc b/custom_components/openclaw/__pycache__/api.cpython-312.pyc deleted file mode 100644 index ab2066d..0000000 Binary files a/custom_components/openclaw/__pycache__/api.cpython-312.pyc and /dev/null differ diff --git a/custom_components/openclaw/__pycache__/binary_sensor.cpython-312.pyc b/custom_components/openclaw/__pycache__/binary_sensor.cpython-312.pyc deleted file mode 100644 index e7623d8..0000000 Binary files a/custom_components/openclaw/__pycache__/binary_sensor.cpython-312.pyc and /dev/null differ diff --git a/custom_components/openclaw/__pycache__/config_flow.cpython-312.pyc b/custom_components/openclaw/__pycache__/config_flow.cpython-312.pyc deleted file mode 100644 index 943f45b..0000000 Binary files a/custom_components/openclaw/__pycache__/config_flow.cpython-312.pyc and /dev/null differ diff --git a/custom_components/openclaw/__pycache__/const.cpython-312.pyc b/custom_components/openclaw/__pycache__/const.cpython-312.pyc deleted file mode 100644 index be114a0..0000000 Binary files a/custom_components/openclaw/__pycache__/const.cpython-312.pyc and /dev/null differ diff --git a/custom_components/openclaw/__pycache__/coordinator.cpython-312.pyc b/custom_components/openclaw/__pycache__/coordinator.cpython-312.pyc deleted file mode 100644 index 6c9cae4..0000000 Binary files a/custom_components/openclaw/__pycache__/coordinator.cpython-312.pyc and /dev/null differ diff --git a/custom_components/openclaw/__pycache__/sensor.cpython-312.pyc b/custom_components/openclaw/__pycache__/sensor.cpython-312.pyc deleted file mode 100644 index 444b8d8..0000000 Binary files a/custom_components/openclaw/__pycache__/sensor.cpython-312.pyc and /dev/null differ