Skip to content

Commit 9b705fa

Browse files
alepeecursoragent
andcommitted
Consolidate workflows: validate (HACS/hassfest + schedule), ci (lint + tests), remove release-drafter
Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent 3457b71 commit 9b705fa

File tree

6 files changed

+51
-171
lines changed

6 files changed

+51
-171
lines changed

.github/release-drafter.yml

Lines changed: 0 additions & 82 deletions
This file was deleted.

.github/workflows/ci.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: Continuous Integration
2+
3+
on:
4+
push:
5+
pull_request:
6+
workflow_dispatch:
7+
8+
jobs:
9+
lint:
10+
name: Lint (Ruff)
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v5
14+
- name: Set up Python 3.12
15+
uses: actions/setup-python@v6
16+
with:
17+
python-version: "3.12"
18+
cache: pip
19+
- name: Install dependencies
20+
run: |
21+
python -m pip install --upgrade pip
22+
pip install -r requirements.txt
23+
- name: Ruff check
24+
run: ruff check .
25+
- name: Ruff format check
26+
run: ruff format --check .
27+
28+
tests:
29+
name: Tests (Pytest)
30+
runs-on: ubuntu-latest
31+
steps:
32+
- uses: actions/checkout@v5
33+
- name: Set up Python 3.12
34+
uses: actions/setup-python@v6
35+
with:
36+
python-version: "3.12"
37+
cache: pip
38+
- name: Install dependencies
39+
run: |
40+
python -m pip install --upgrade pip
41+
pip install -r requirements.txt
42+
pip install -r requirements-dev.txt
43+
- name: Run tests
44+
run: pytest

.github/workflows/lint.yml

Lines changed: 0 additions & 28 deletions
This file was deleted.

.github/workflows/release-drafter.yml

Lines changed: 0 additions & 18 deletions
This file was deleted.

.github/workflows/tests.yml

Lines changed: 0 additions & 37 deletions
This file was deleted.

.github/workflows/validate.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,16 @@ on:
99

1010
jobs:
1111
validate-hacs:
12-
runs-on: "ubuntu-latest"
12+
runs-on: ubuntu-latest
1313
steps:
1414
- name: HACS validation
15-
uses: "hacs/action@main"
15+
uses: hacs/action@main
1616
with:
17-
category: "integration"
17+
category: integration
1818
ignore: brands
19+
1920
validate-hass:
20-
runs-on: "ubuntu-latest"
21+
runs-on: ubuntu-latest
2122
steps:
22-
- uses: "actions/checkout@v5"
23-
- uses: "home-assistant/actions/hassfest@master"
23+
- uses: actions/checkout@v5
24+
- uses: home-assistant/actions/hassfest@master

0 commit comments

Comments
 (0)