mirror of
https://github.com/hacs/integration.git
synced 2025-08-20 16:14:55 +00:00
Update workflow for backend testing (#743)
* Update workflow for backend testing * Remove osx/windows * move stuff * downgrade attrs to not conflict with HA * Adds frontend as a dependency * Update * format * format? * remove max value * Add note
This commit is contained in:
@ -1,17 +1,19 @@
|
|||||||
|
---
|
||||||
default_config:
|
default_config:
|
||||||
logger:
|
logger:
|
||||||
default: error
|
default: error
|
||||||
logs:
|
logs:
|
||||||
custom_components.hacs: debug
|
|
||||||
hacs: debug
|
hacs: debug
|
||||||
|
|
||||||
frontend:
|
frontend:
|
||||||
themes: !include_dir_merge_named themes
|
themes: !include_dir_merge_named themes
|
||||||
|
|
||||||
|
|
||||||
hacs:
|
hacs:
|
||||||
token: CHANGE_ME
|
token: CHANGE_ME
|
||||||
|
sidepanel_title: HACS
|
||||||
|
sidepanel_icon: mdi:store
|
||||||
appdaemon: true
|
appdaemon: true
|
||||||
python_script: true
|
python_script: true
|
||||||
theme: true
|
theme: true
|
||||||
dev: true
|
options:
|
||||||
|
experimental: true
|
||||||
|
country: "NO"
|
||||||
|
release_limit: 10
|
||||||
|
37
.github/workflows/BackendTest.yml
vendored
37
.github/workflows/BackendTest.yml
vendored
@ -8,23 +8,30 @@ on:
|
|||||||
jobs:
|
jobs:
|
||||||
ha_test:
|
ha_test:
|
||||||
name: Home Assistant Check
|
name: Home Assistant Check
|
||||||
runs-on: ubuntu-latest
|
|
||||||
strategy:
|
strategy:
|
||||||
max-parallel: 6
|
|
||||||
matrix:
|
matrix:
|
||||||
python-version: [3.6, 3.7]
|
python-version: [
|
||||||
|
3.6,
|
||||||
|
3.7,
|
||||||
|
# Python 3.8 can not yet be enabled. https://github.com/actions/setup-python/issues/30
|
||||||
|
#3.8
|
||||||
|
]
|
||||||
ha-version: ["stable", "beta", "dev"]
|
ha-version: ["stable", "beta", "dev"]
|
||||||
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v1
|
- name: "Get the repository content"
|
||||||
- name: Enable Python version ${{ matrix.python-version }}
|
uses: actions/checkout@v1
|
||||||
|
|
||||||
|
- name: Enable version ${{ matrix.python-version }} of Python
|
||||||
uses: actions/setup-python@v1
|
uses: actions/setup-python@v1
|
||||||
with:
|
with:
|
||||||
python-version: ${{ matrix.python-version }}
|
python-version: ${{ matrix.python-version }}
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: python -m pip install --upgrade pip setuptools wheel colorlog==4.0.2
|
||||||
python -m pip install --upgrade pip setuptools aiohttp_cors wheel colorlog==4.0.2
|
|
||||||
|
|
||||||
|
- name: Install dependencies for custom_components
|
||||||
|
run: |
|
||||||
for file in $(find custom_components/ -name "manifest.json"); do
|
for file in $(find custom_components/ -name "manifest.json"); do
|
||||||
cat "$file" | for req in $(jq .requirements[]);
|
cat "$file" | for req in $(jq .requirements[]);
|
||||||
do pip install $(echo "$req" | jq -r .);
|
do pip install $(echo "$req" | jq -r .);
|
||||||
@ -41,20 +48,8 @@ jobs:
|
|||||||
pip install homeassistant
|
pip install homeassistant
|
||||||
fi
|
fi
|
||||||
|
|
||||||
- name: 'Inject HACS into Home Assistant configuration'
|
- name: 'Copy sample configuration for Home Assistant'
|
||||||
run: |
|
run: cp -f .devcontainer/sample_configuration.yaml ./configuration.yaml
|
||||||
echo "default_config:" | tee -a configuration.yaml
|
|
||||||
echo "hacs:" | tee -a configuration.yaml
|
|
||||||
echo " token: xxxxxxxxxxxxxxxxxxxxxxxxxxx" | tee -a configuration.yaml
|
|
||||||
echo " sidepanel_title: HACS" | tee -a configuration.yaml
|
|
||||||
echo " sidepanel_icon: 'mdi:store'" | tee -a configuration.yaml
|
|
||||||
echo " appdaemon: true" | tee -a configuration.yaml
|
|
||||||
echo " python_script: true" | tee -a configuration.yaml
|
|
||||||
echo " theme: true" | tee -a configuration.yaml
|
|
||||||
echo " options:" | tee -a configuration.yaml
|
|
||||||
echo " country: 'NO'" | tee -a configuration.yaml
|
|
||||||
echo " release_limit: 5" | tee -a configuration.yaml
|
|
||||||
echo " experimental: true" | tee -a configuration.yaml
|
|
||||||
|
|
||||||
- name: Home Assistant configuration check
|
- name: Home Assistant configuration check
|
||||||
run: |
|
run: |
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
"homeassistant": "0.98.0",
|
"homeassistant": "0.98.0",
|
||||||
"requirements": [
|
"requirements": [
|
||||||
"aiofiles==0.4.0",
|
"aiofiles==0.4.0",
|
||||||
"attrs==19.3.0",
|
"attrs==19.2.0",
|
||||||
"aiogithubapi==0.4.2",
|
"aiogithubapi==0.4.2",
|
||||||
"backoff==1.8.0",
|
"backoff==1.8.0",
|
||||||
"integrationhelper==0.2.2"
|
"integrationhelper==0.2.2"
|
||||||
|
Reference in New Issue
Block a user