From: Giorgio Ravera Date: Fri, 30 Dec 2022 00:20:51 +0000 (+0100) Subject: Migrated from travis-ci to github actions X-Git-Url: http://git.giorgioravera.it/?a=commitdiff_plain;h=5feb225f90b26f809e33244efa24654dba1090b7;p=homeassistant.git Migrated from travis-ci to github actions --- diff --git a/.github/workflows/ci-validation.yaml b/.github/workflows/ci-validation.yaml new file mode 100644 index 00000000..7284a206 --- /dev/null +++ b/.github/workflows/ci-validation.yaml @@ -0,0 +1,40 @@ +name: Home Assistant Configuration Check + +on: + push: + branches: [ "master" ] + pull_request: + branches: [ "master" ] + +permissions: + contents: read + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + - name: Set up Python 3.10 + uses: actions/setup-python@v3 + with: + python-version: "3.10" + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install lxml arp colorlog python-dateutil + if [ -f requirements.txt ]; then pip install -r requirements.txt; fi + - name: Install Home Assistant + run: | + pip install homeassistant + - name: Use dummy files for credentials + run: | + cp .secrets_dummy.yaml secrets.yaml + cp credentials/.google_dummy.json credentials/google.json + - name: Replace pirateweather wather integration with darksky + run: | + sed -i "s/pirateweather/darksky/" components/weather.yaml + - name: Home Assistant Configuration Check + run: | + hass -c . --script check_config --info all diff --git a/.secrets_dummy.yaml b/.secrets_dummy.yaml new file mode 100644 index 00000000..c24ae9dc --- /dev/null +++ b/.secrets_dummy.yaml @@ -0,0 +1,76 @@ + +# Use this file to store secrets like usernames and passwords. +# Learn more at https://www.home-assistant.io/docs/configuration/secrets/ + +home_latitude: 0 +home_longitude: 0 +home_elevation: 0 +hitachi_latitude: 0 +hitachi_longitude: 0 +varazze_latitude: 0 +varazze_longitude: 0 +morgex_latitude: 0 +morgex_longitude: 0 +torretti_latitude: 0 +torretti_longitude: 0 +cisl_latitude: 0 +cisl_longitude: 0 +hotmetalflat_latitude: 0 +hotmetalflat_longitude: 0 +hitachius_latitude: 0 +hitachius_longitude: 0 + +base_url: http://localhost + +mail_server: localhost +mail_sender: email@domain.com +mail_recipient: email@domain.com + +shelly_user: user +shelly_password: password + +google_project: project +google_agent: 00 +google_pin: "0000" + +google_maps_username: email@domain.com +google_maps_password: password + +alexa_client_id: user +alexa_client_secret: password + +proxmox_host: host +proxmox_user: user +proxmox_password: password +proxmox_node: node + +vapid_pub_key: 00 +vapid_prv_key: 00 +vapid_email: email@domain.com + +nas_host: host +nas_mac: 00:00:00:00:00:00 +nas_username: user + +docker_host: host +docker_username: user + +pirateweather_key: 0 +darksky_key: 0 + +hacs_token: 0 + +mb_vin: vin + +telegram_bot_name: "name_bot" +telegram_bot_username: "telegram_bot" +telegram_bot_access_token: token +telegram_bot_chat_id_group: 0 +telegram_bot_chat_id_giorgio: 0 +telegram_bot_chat_id_laura: 0 + +giorgio_smartphone_nfc: 0 +laura_smartphone_nfc: 0 + +nfc_1: 0 +nfc_2: 0 diff --git a/.secrets_travis.yaml b/.secrets_travis.yaml deleted file mode 100644 index c24ae9dc..00000000 --- a/.secrets_travis.yaml +++ /dev/null @@ -1,76 +0,0 @@ - -# Use this file to store secrets like usernames and passwords. -# Learn more at https://www.home-assistant.io/docs/configuration/secrets/ - -home_latitude: 0 -home_longitude: 0 -home_elevation: 0 -hitachi_latitude: 0 -hitachi_longitude: 0 -varazze_latitude: 0 -varazze_longitude: 0 -morgex_latitude: 0 -morgex_longitude: 0 -torretti_latitude: 0 -torretti_longitude: 0 -cisl_latitude: 0 -cisl_longitude: 0 -hotmetalflat_latitude: 0 -hotmetalflat_longitude: 0 -hitachius_latitude: 0 -hitachius_longitude: 0 - -base_url: http://localhost - -mail_server: localhost -mail_sender: email@domain.com -mail_recipient: email@domain.com - -shelly_user: user -shelly_password: password - -google_project: project -google_agent: 00 -google_pin: "0000" - -google_maps_username: email@domain.com -google_maps_password: password - -alexa_client_id: user -alexa_client_secret: password - -proxmox_host: host -proxmox_user: user -proxmox_password: password -proxmox_node: node - -vapid_pub_key: 00 -vapid_prv_key: 00 -vapid_email: email@domain.com - -nas_host: host -nas_mac: 00:00:00:00:00:00 -nas_username: user - -docker_host: host -docker_username: user - -pirateweather_key: 0 -darksky_key: 0 - -hacs_token: 0 - -mb_vin: vin - -telegram_bot_name: "name_bot" -telegram_bot_username: "telegram_bot" -telegram_bot_access_token: token -telegram_bot_chat_id_group: 0 -telegram_bot_chat_id_giorgio: 0 -telegram_bot_chat_id_laura: 0 - -giorgio_smartphone_nfc: 0 -laura_smartphone_nfc: 0 - -nfc_1: 0 -nfc_2: 0 diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 5309e08b..00000000 --- a/.travis.yml +++ /dev/null @@ -1,17 +0,0 @@ -language: python - -python: "3.9" - -before_install: - - cp .secrets_travis.yaml secrets.yaml - - cp credentials/.google_travis.json credentials/google.json - # Replace pirateweather wather integration with darksky - - sed -i "s/pirateweather/darksky/" components/weather.yaml - -install: - - pip3 install homeassistant - - pip3 install colorlog - - pip3 install python-dateutil - -script: - - hass -c . --script check_config --info all diff --git a/credentials/.google_dummy.json b/credentials/.google_dummy.json new file mode 100644 index 00000000..19273218 --- /dev/null +++ b/credentials/.google_dummy.json @@ -0,0 +1,12 @@ +{ + "type": "service_account", + "project_id": "project_id", + "private_key_id": "private_key_id", + "private_key": "private_key", + "client_email": "client_email", + "client_id": "client_id", + "auth_uri": "auth_uri", + "token_uri": "token_uri", + "auth_provider_x509_cert_url": "auth_provider_x509_cert_url", + "client_x509_cert_url": "client_x509_cert_url" +} diff --git a/credentials/.google_travis.json b/credentials/.google_travis.json deleted file mode 100644 index 19273218..00000000 --- a/credentials/.google_travis.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "type": "service_account", - "project_id": "project_id", - "private_key_id": "private_key_id", - "private_key": "private_key", - "client_email": "client_email", - "client_id": "client_id", - "auth_uri": "auth_uri", - "token_uri": "token_uri", - "auth_provider_x509_cert_url": "auth_provider_x509_cert_url", - "client_x509_cert_url": "client_x509_cert_url" -}