-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
jtbgroup
committed
Jan 20, 2024
1 parent
45d1395
commit 668fcaa
Showing
4 changed files
with
72 additions
and
41 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
2 changes: 1 addition & 1 deletion
2
.github/workflows/release.yml → .github/workflows/project _release.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: Release | ||
name: Project release | ||
|
||
on: | ||
release: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file was deleted.
Oops, something went wrong.