Files
hassio-configuration/.github/workflows/build.yaml
Alex Savin 27cb5515c4
All checks were successful
Savin's Home Assistant / build (push) Successful in 1m19s
More fixes
2025-02-07 15:22:38 -05:00

93 lines
2.9 KiB
YAML

---
name: Savin's Home Assistant
on:
push:
branches: [develop]
paths-ignore:
- 'README.md'
# - '.github/**'
pull_request:
branches: [develop]
paths-ignore:
- 'README.md'
# - '.github/**'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Custom Components (Hass.IO)
run: |
pwd
ls -la
# git checkout $(git describe --tags --always $(git rev-list --tags --max-count=1000) | grep -e "[0-9]\+\.[0-9]\+\.[0-9]\+$" | head -n 1)
- name: Install system libs and dependencies
run: |
sudo apt-get -qq update
sudo apt-get -y -qq install libturbojpeg-dev
# sudo apt-get -y -qq install libavformat-dev libavcodec-dev libavdevice-dev libavutil-dev libswscale-dev libswresample-dev
# sudo apt-get install nodejs
# - name: Install Prettier
# run: |
# sudo npm install --global prettier
- name: Set up Python 3.13
uses: actions/setup-python@v5
with:
python-version: 3.13
- name: Install Python packages (Lint)
run: |
python -m pip install --upgrade pip
pip install black flake8 pylint yamllint colorlog
# - name: YAML Lint
# run: |
# yamllint ./
# # - name: Prettier Check Up
# # run: |
# # prettier --check --no-bracket-spacing '**/*.{yaml,json}'
- name: Install Python packages (Hass.IO)
run: |
pip install yq jq
pip install homeassistant
echo "Installing numpy, requered by Component: mobile_app, stream and camera\n"
pip install numpy
echo "Installing hassil, requered by Component: mobile_app\n"
pip install hassil
echo "Installing numpy, requered by Component: python_script\n"
pip install RestrictedPython
echo "Installing numpy, requered by Component: twilio\n"
pip install twilio
echo "Installing numpy, requered by Component: telegram_bot\n"
pip install telegram
echo "Installing pyeiscp, requered by Component: onkyo\n"
pip install pyeiscp
echo "Installing async_upnp_client, requered by Component: ssdp\n"
pip install async_upnp_client
- name: Check HassIO configuration
run: |
sudo mkdir -p /config/www
hass --version
mv secrets.sample.yaml secrets.yaml
ls -la
hass -c . --script check_config | tee check.output
! less check.output | grep -q "Failed config"
# # - name: Send a telegram message with job status
# # if: always()
# # uses: appleboy/telegram-action@master
# # with:
# # to: ${{ secrets.TELEGRAM_TO }}
# # token: ${{ secrets.TELEGRAM_TOKEN }}
# # args: The last job from repo ({{repo}}) finished with ${{job.status}}.