diff --git a/.devcontainer/sample_configuration.yaml b/.devcontainer/sample_configuration.yaml index 61bce5855..b12724a47 100644 --- a/.devcontainer/sample_configuration.yaml +++ b/.devcontainer/sample_configuration.yaml @@ -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 \ No newline at end of file + options: + experimental: true + country: "NO" + release_limit: 10 diff --git a/.github/workflows/BackendTest.yml b/.github/workflows/BackendTest.yml index bb5d378d8..82c9a8030 100644 --- a/.github/workflows/BackendTest.yml +++ b/.github/workflows/BackendTest.yml @@ -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: | diff --git a/custom_components/hacs/manifest.json b/custom_components/hacs/manifest.json index 7b3ed7db1..eebc15044 100644 --- a/custom_components/hacs/manifest.json +++ b/custom_components/hacs/manifest.json @@ -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"