33 lines
978 B
YAML
33 lines
978 B
YAML
name: CI
|
|
|
|
"on":
|
|
push:
|
|
branches: [main]
|
|
pull_request:
|
|
branches: [main]
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
validate:
|
|
runs-on: ubuntu-latest
|
|
timeout-minutes: 45
|
|
steps:
|
|
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
|
|
- uses: actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38
|
|
with:
|
|
python-version: "3.12"
|
|
cache: pip
|
|
- uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32
|
|
with:
|
|
go-version: "1.27.1"
|
|
- name: Install test dependencies
|
|
run: python -m pip install --requirement requirements-dev.txt
|
|
- name: Validate metadata, patches, and process manager
|
|
run: pytest -q
|
|
- name: Build amd64 image
|
|
run: docker buildx build --platform linux/amd64 --build-arg BUILD_ARCH=amd64 --load --tag homeassistant-stelloauth-addon:test stelloauth
|
|
- name: Exercise runtime
|
|
run: SKIP_BUILD=1 tests/test_runtime.sh
|