Home Assistant CI #2964
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
name: Home Assistant CI | |
# yamllint disable-line rule:truthy | |
on: | |
push: | |
pull_request: | |
workflow_dispatch: | |
schedule: | |
- cron: 0 12 * * * | |
jobs: | |
yamllint: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Getting your configuration from GitHub | |
uses: actions/checkout@v3 | |
- name: Running YAMLlint | |
uses: ibiqlik/action-yamllint@v1 | |
continue-on-error: true | |
with: | |
config_file: .github/yamllint-config.yml | |
remarklint: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Getting your configuration from GitHub | |
uses: actions/checkout@v3 | |
- name: Running Remark lint | |
uses: "docker://pipelinecomponents/remark-lint:latest" | |
continue-on-error: true | |
with: | |
args: "remark --no-stdout --color --frail --use preset-lint-recommended ." | |
home_assistant_current: | |
runs-on: ubuntu-latest | |
needs: [yamllint, remarklint] | |
steps: | |
- name: Getting your configuration from GitHub | |
uses: actions/checkout@v3 | |
- name: Set up Python 3.12 | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.12' | |
- name: Copy stub files into configuration folder | |
run: | | |
cp -R secrets_github.yaml secrets.yaml | |
cp -R customize_sample.yaml customize.yaml | |
cp -R service_account_ga_sample.json service_account_ga.json | |
sudo mkdir -p /github/workspace/tmp | |
#sudo touch fullchain.pem | |
#sudo touch privkey.pem | |
HA_VERSION=$(<.HA_VERSION) | |
- name: Install Home Assistant | |
run: pip3 install homeassistant==$(cat .HA_VERSION) | |
- name: Check config | |
run: hass -c . --script check_config --info all --system | |
home_assistant_stable: | |
runs-on: ubuntu-latest | |
needs: [yamllint, remarklint] | |
steps: | |
- name: Getting your configuration from GitHub | |
uses: actions/checkout@v3 | |
- name: Set up Python 3.12 | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.12' | |
- name: Copy stub files into configuration folder | |
run: | | |
cp -R secrets_github.yaml secrets.yaml | |
cp -R customize_sample.yaml customize.yaml | |
cp -R service_account_ga_sample.json service_account_ga.json | |
sudo mkdir -p /github/workspace/tmp | |
sudo touch fullchain.pem | |
sudo touch privkey.pem | |
- name: Home Assistant Version | |
uses: "docker://homeassistant/home-assistant:stable" | |
with: | |
args: | | |
python -m homeassistant --version | |
- name: Home Assistant Check | |
uses: "docker://homeassistant/home-assistant:stable" | |
with: | |
args: python -m homeassistant --config ./ --script check_config --info all | |
home_assistant_beta: | |
runs-on: ubuntu-latest | |
needs: [yamllint, remarklint] | |
steps: | |
- name: Getting your configuration from GitHub | |
uses: actions/checkout@v3 | |
- name: Copy stub files into configuration folder | |
run: | | |
cp -R secrets_github.yaml secrets.yaml | |
cp -R customize_sample.yaml customize.yaml | |
cp -R service_account_ga_sample.json service_account_ga.json | |
sudo mkdir -p /github/workspace/tmp | |
sudo touch fullchain.pem | |
sudo touch privkey.pem | |
- name: Home Assistant Version | |
uses: "docker://homeassistant/home-assistant:beta" | |
with: | |
args: | | |
python -m homeassistant --version | |
- name: Home Assistant Check | |
uses: "docker://homeassistant/home-assistant:beta" | |
with: | |
args: python -m homeassistant --config ./ --script check_config --info all | |
home_assistant_dev: | |
runs-on: ubuntu-latest | |
needs: [yamllint, remarklint] | |
steps: | |
- name: Getting your configuration from GitHub | |
uses: actions/checkout@v3 | |
- name: Copy stub files into configuration folder | |
run: | | |
cp -R secrets_github.yaml secrets.yaml | |
cp -R customize_sample.yaml customize.yaml | |
cp -R service_account_ga_sample.json service_account_ga.json | |
sudo mkdir -p /github/workspace/tmp | |
sudo touch fullchain.pem | |
sudo touch privkey.pem | |
- name: Home Assistant Version | |
uses: "docker://homeassistant/home-assistant:dev" | |
with: | |
args: | | |
python -m homeassistant --version | |
- name: Home Assistant Check | |
uses: "docker://homeassistant/home-assistant:dev" | |
continue-on-error: true | |
with: | |
args: python -m homeassistant --config ./ --script check_config --info all |