Skip to content

Commit

Permalink
added validation hacs
Browse files Browse the repository at this point in the history
  • Loading branch information
jtbgroup committed Jan 20, 2024
1 parent 45d1395 commit 668fcaa
Show file tree
Hide file tree
Showing 4 changed files with 72 additions and 41 deletions.
22 changes: 0 additions & 22 deletions .github/workflows/build.yml

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Release
name: Project release

on:
release:
Expand Down
71 changes: 71 additions & 0 deletions .github/workflows/project_validation.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
name: Project validation

on:
push:
branches:
- master
- develop

jobs:
validate_hacs:
name: Validate HACS requirements
runs-on: "ubuntu-latest"
steps:
- uses: "actions/checkout@v3"
- name: HACS validation
uses: "hacs/action@main"
with:
category: "plugin"

validate_hassfest:
name: Validate with Hassfest for Home assistant
runs-on: "ubuntu-latest"
steps:
- uses: "actions/checkout@v3"
- uses: home-assistant/actions/hassfest@master

control_style:
name: Check style formatting
runs-on: "ubuntu-latest"
steps:
- uses: "actions/checkout@v3"
- uses: "actions/setup-python@v4"
with:
python-version: "3.x"
- run: python3 -m pip install black
- run: black .

# UNIT Test still need to be reviewed and implemented

# run_tests:
# name: Run unit tests
# runs-on: "ubuntu-latest"
# strategy:
# max-parallel: 4
# matrix:
# python-version: [3.8]
# steps:
# - name: Check out code from GitHub
# uses: "actions/checkout@v2"

# - name: Setup Python ${{ matrix.python-version }}
# uses: "actions/setup-python@v1"
# with:
# python-version: ${{ matrix.python-version }}

# - name: Install requirements
# run: |
# python3 -m pip install --upgrade pip
# python3 install -r requirements.prectest.txt

# - name: Run tests
# run: |
# pytest \
# -qq \
# --timeout=9 \
# --durations=10 \
# -n auto \
# --cov custom_components.auto_areas \
# -o console_output_style=count \
# -p no:sugar \
# tests
18 changes: 0 additions & 18 deletions .github/workflows/validate_hacs.yml

This file was deleted.

0 comments on commit 668fcaa

Please sign in to comment.