@@ -16,33 +16,33 @@ jobs:
16
16
runs-on : ubuntu-latest
17
17
steps :
18
18
- name : Checkout code
19
- uses : actions/checkout@v3
19
+ uses : actions/checkout@v4
20
20
21
- - name : Set up Python 3.12
22
- uses : actions/setup-python@v4
21
+ - name : Set up Python 3.13
22
+ uses : actions/setup-python@v5
23
23
with :
24
- python-version : " 3.12 "
24
+ python-version : " 3.13 "
25
25
26
26
- name : Set up uv
27
27
uses : astral-sh/setup-uv@v5
28
28
with :
29
29
version : " 0.6.3"
30
30
31
31
- name : Install dependencies
32
- run : uv pip install --system -e ".[dev]"
32
+ run : make install
33
33
34
- - name : Run Ruff
35
- run : uv run ruff check .
34
+ - name : Run lint
35
+ run : make lint
36
36
37
37
test :
38
38
name : Run Tests
39
39
runs-on : ubuntu-latest
40
40
steps :
41
41
- name : Checkout code
42
- uses : actions/checkout@v3
42
+ uses : actions/checkout@v4
43
43
44
44
- name : Set up Python 3.12
45
- uses : actions/setup-python@v4
45
+ uses : actions/setup-python@v5
46
46
with :
47
47
python-version : " 3.12"
48
48
@@ -52,17 +52,17 @@ jobs:
52
52
version : " 0.6.3"
53
53
54
54
- name : Install dependencies
55
- run : uv pip install --system -e ".[dev]"
55
+ run : make install
56
56
57
57
- name : Run tests with pytest
58
- run : uv run pytest --cov=custom_components/signalrgb --cov-report=xml
58
+ run : make test
59
59
60
60
validate :
61
61
name : Validate Project
62
62
runs-on : ubuntu-latest
63
63
steps :
64
64
- name : Checkout code
65
- uses : actions/checkout@v3
65
+ uses : actions/checkout@v4
66
66
67
67
- name : Run hassfest
68
68
uses : home-assistant/actions/hassfest@master
@@ -78,25 +78,30 @@ jobs:
78
78
runs-on : ubuntu-latest
79
79
steps :
80
80
- name : Checkout code
81
- uses : actions/checkout@v3
81
+ uses : actions/checkout@v4
82
82
83
- - name : Set up Python 3.12
84
- uses : actions/setup-python@v4
83
+ - name : Set up Python 3.13
84
+ uses : actions/setup-python@v5
85
85
with :
86
- python-version : " 3.12 "
86
+ python-version : " 3.13 "
87
87
88
88
- name : Set up uv
89
89
uses : astral-sh/setup-uv@v5
90
90
with :
91
91
version : " 0.6.3"
92
92
93
93
- name : Install dependencies
94
- run : |
95
- uv pip install --system -e ".[dev]"
96
- uv pip install build
94
+ run : uv sync
97
95
98
96
- name : Build the package
99
- run : uv run python -m build
97
+ run : uv build
98
+
99
+ - name : Upload Build Artifacts
100
+ uses : actions/upload-artifact@v3
101
+ with :
102
+ name : dist
103
+ path : dist/
104
+ retention-days : 1
100
105
101
106
release :
102
107
name : Create Release
@@ -105,22 +110,13 @@ jobs:
105
110
runs-on : ubuntu-latest
106
111
steps :
107
112
- name : Checkout code
108
- uses : actions/checkout@v3
109
-
110
- - name : Set up Python 3.12
111
- uses : actions/setup-python@v4
112
- with :
113
- python-version : " 3.12"
113
+ uses : actions/checkout@v4
114
114
115
- - name : Set up uv
116
- uses : astral-sh/setup-uv@v5
115
+ - name : Download Build Artifacts
116
+ uses : actions/download-artifact@v3
117
117
with :
118
- version : " 0.6.3"
119
-
120
- - name : Install dependencies
121
- run : |
122
- uv pip install --system -e ".[dev]"
123
- uv pip install build twine
118
+ name : dist
119
+ path : dist
124
120
125
121
- name : Create release
126
122
id : create_release
@@ -132,9 +128,3 @@ jobs:
132
128
release_name : Release ${{ github.ref }}
133
129
draft : false
134
130
prerelease : false
135
-
136
- - name : Upload Build Artifacts
137
- uses : actions/upload-artifact@v3
138
- with :
139
- name : dist
140
- path : dist/
0 commit comments