mirror of
https://github.com/GeorgeSG/sarah.git
synced 2026-04-25 04:48:17 +00:00
42 lines
1.0 KiB
YAML
42 lines
1.0 KiB
YAML
name: 'CI'
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- action-test
|
|
pull_request:
|
|
branches:
|
|
- master
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: Setup config for testing
|
|
run: |
|
|
mv ./config/secrets.example.yaml ./config/secrets.yaml
|
|
rm ./config/packages/plugins.yaml
|
|
mkdir -p ./config/www/audio/youtube
|
|
|
|
- name: Setup python
|
|
uses: actions/setup-python@v2
|
|
with:
|
|
python-version: 3.7.7
|
|
architecture: x64
|
|
- name: Install dependencies
|
|
run: |
|
|
pip install homeassistant
|
|
pip install colorlog
|
|
pip install python-dateutil
|
|
pip install youtube_dl
|
|
pip install netdisco
|
|
pip install zeroconf
|
|
pip install sqlalchemy
|
|
pip install distro
|
|
pip install hass_nabucasa
|
|
pip install fastdotcom
|
|
pip install speedtest
|
|
- name: Test
|
|
run: hass -c config/ --script check_config --info all
|