Improve GitHub Actions (#97)
* Delete hassfest.yaml * Update and rename ci.yaml to tox.yaml * Create combined.yaml * Update hacs.json * Update README.md * Update combined.yaml * Remove unused import * Restored wrongly deleted line in cover.py * Update config_flow.py * Update __init__.py Co-authored-by: Pierre Ståhl <pierre.staahl@gmail.com> Co-authored-by: rospogrigio <49229287+rospogrigio@users.noreply.github.com>
This commit is contained in:
26
.github/workflows/combined.yaml
vendored
Normal file
26
.github/workflows/combined.yaml
vendored
Normal file
@@ -0,0 +1,26 @@
|
||||
name: "Validation And Formatting"
|
||||
on:
|
||||
push:
|
||||
pull_request:
|
||||
schedule:
|
||||
- cron: '0 0 * * *'
|
||||
jobs:
|
||||
ci:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
name: Download repo
|
||||
with:
|
||||
fetch-depth: 0
|
||||
- uses: actions/setup-python@v2
|
||||
name: Setup Python
|
||||
- uses: actions/cache@v2
|
||||
name: Cache
|
||||
with:
|
||||
path: |
|
||||
~/.cache/pip
|
||||
key: custom-component-ci
|
||||
- uses: KTibow/ha-blueprint@stable
|
||||
name: CI
|
||||
with:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
14
.github/workflows/hassfest.yaml
vendored
14
.github/workflows/hassfest.yaml
vendored
@@ -1,14 +0,0 @@
|
||||
name: Validate with hassfest
|
||||
|
||||
on:
|
||||
push:
|
||||
pull_request:
|
||||
schedule:
|
||||
- cron: "0 0 * * *"
|
||||
|
||||
jobs:
|
||||
validate:
|
||||
runs-on: "ubuntu-latest"
|
||||
steps:
|
||||
- uses: "actions/checkout@v2"
|
||||
- uses: home-assistant/actions/hassfest@master
|
@@ -1,4 +1,4 @@
|
||||
name: CI
|
||||
name: Tox PR CI
|
||||
|
||||
on: [pull_request]
|
||||
|
||||
@@ -11,7 +11,6 @@ jobs:
|
||||
runs-on: ${{ matrix.platform }}
|
||||
strategy:
|
||||
matrix:
|
||||
# https://help.github.com/articles/virtual-environments-for-github-actions
|
||||
platform:
|
||||
- ubuntu-latest
|
||||
python-version:
|
Reference in New Issue
Block a user