Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
56 changes: 49 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,17 @@ name: CI

on:
push:
branches: [main, feature/**]
branches: [main, master, "feature/**"]
pull_request:
branches: [main]
branches: [main, master]

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
cancel-in-progress: true

jobs:
test:
name: Lint & Test
lint:
name: Ruff Lint
runs-on: ubuntu-latest
steps:
- name: Checkout code
Expand All @@ -22,10 +26,48 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install ruff pytest pytest-asyncio pytest-mock anyio pyyaml aiohttp
pip install ruff

- name: Run Ruff linter
run: ruff check .

- name: Run Pytest test suite
run: pytest tests/
test-backend:
name: Backend Tests
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.12"

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pytest pytest-asyncio pytest-mock anyio pyyaml aiohttp

- name: Run Pytest backend test suite
run: pytest tests/ --ignore=tests/test_playwright_e2e.py

test-e2e:
name: Playwright E2E Tests
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.12"

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pytest pytest-asyncio pytest-mock anyio pyyaml aiohttp playwright
playwright install chromium

- name: Run Playwright E2E test suite
run: pytest tests/test_playwright_e2e.py -v
32 changes: 32 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Release

on:
push:
tags:
- "v*"
workflow_dispatch:

permissions:
contents: write

jobs:
release:
name: Build & Publish Release
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Build HACS zip archive
run: |
cd custom_components
zip -r ../google_assistant_entity_console.zip google_assistant_entity_console -x "*.pyc" "*__pycache__*"
cd ..

- name: Create GitHub Release
uses: softprops/action-gh-release@v2
with:
files: google_assistant_entity_console.zip
generate_release_notes: true
draft: false
prerelease: false
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,14 +66,14 @@ Configuring entities exposed to Google Assistant in Home Assistant traditionally

1. Open **HACS** in your Home Assistant sidebar.
2. Click the three dots (⋮) in the top-right corner and select **Custom repositories**.
3. Enter the repository URL: `https://github.com/spelech/googleAssistantConfigGen`
3. Enter the repository URL: `https://github.com/spelech/GoogleAssistantEntityConsole`
4. Select **Integration** as the Category and click **Add**.
5. Find **Google Assistant Entity Console** in HACS, click **Download**, and select the latest release.
6. Restart Home Assistant.

### Method 2: Manual Installation

1. Download the latest release `.zip` from the [Releases](https://github.com/spelech/googleAssistantConfigGen/releases) tab.
1. Download the latest release `.zip` from the [Releases](https://github.com/spelech/GoogleAssistantEntityConsole/releases) tab.
2. Extract and copy the `custom_components/google_assistant_entity_console/` directory into your Home Assistant `/config/custom_components/` directory.
3. Restart Home Assistant.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
"name": "Google Assistant Entity Console",
"codeowners": ["@spelech"],
"dependencies": ["frontend", "http"],
"documentation": "https://github.com/spelech/googleAssistantConfigGen",
"issue_tracker": "https://github.com/spelech/googleAssistantConfigGen/issues",
"documentation": "https://github.com/spelech/GoogleAssistantEntityConsole",
"issue_tracker": "https://github.com/spelech/GoogleAssistantEntityConsole/issues",
"iot_class": "local_polling",
"config_flow": true,
"requirements": [],
"version": "1.9.0"
"version": "2.0.0"
}
Loading
Loading