mirror of
https://github.com/hacs/integration.git
synced 2025-08-16 17:12:38 +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:
|
||||
logger:
|
||||
default: error
|
||||
logs:
|
||||
custom_components.hacs: debug
|
||||
hacs: debug
|
||||
|
||||
frontend:
|
||||
themes: !include_dir_merge_named themes
|
||||
|
||||
|
||||
hacs:
|
||||
token: CHANGE_ME
|
||||
sidepanel_title: HACS
|
||||
sidepanel_icon: mdi:store
|
||||
appdaemon: true
|
||||
python_script: 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:
|
||||
ha_test:
|
||||
name: Home Assistant Check
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
max-parallel: 6
|
||||
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"]
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
- name: Enable Python version ${{ matrix.python-version }}
|
||||
- name: "Get the repository content"
|
||||
uses: actions/checkout@v1
|
||||
|
||||
- name: Enable version ${{ matrix.python-version }} of Python
|
||||
uses: actions/setup-python@v1
|
||||
with:
|
||||
python-version: ${{ matrix.python-version }}
|
||||
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
python -m pip install --upgrade pip setuptools aiohttp_cors wheel colorlog==4.0.2
|
||||
run: python -m pip install --upgrade pip setuptools wheel colorlog==4.0.2
|
||||
|
||||
- name: Install dependencies for custom_components
|
||||
run: |
|
||||
for file in $(find custom_components/ -name "manifest.json"); do
|
||||
cat "$file" | for req in $(jq .requirements[]);
|
||||
do pip install $(echo "$req" | jq -r .);
|
||||
@ -41,20 +48,8 @@ jobs:
|
||||
pip install homeassistant
|
||||
fi
|
||||
|
||||
- name: 'Inject HACS into Home Assistant configuration'
|
||||
run: |
|
||||
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: 'Copy sample configuration for Home Assistant'
|
||||
run: cp -f .devcontainer/sample_configuration.yaml ./configuration.yaml
|
||||
|
||||
- name: Home Assistant configuration check
|
||||
run: |
|
||||
|
@ -10,7 +10,7 @@
|
||||
"homeassistant": "0.98.0",
|
||||
"requirements": [
|
||||
"aiofiles==0.4.0",
|
||||
"attrs==19.3.0",
|
||||
"attrs==19.2.0",
|
||||
"aiogithubapi==0.4.2",
|
||||
"backoff==1.8.0",
|
||||
"integrationhelper==0.2.2"
|
||||
|
Reference in New Issue
Block a user