FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
python-kasa/.github/workflows/ci.yml at patch · IDavinciCode/python-kasa · GitHub
IDavinciCode
python-kasa
Repository navigation
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
python-kasa
/
.github
/
workflows
/
ci.yml
Copy path
View runs
More file actions
More file actions
Latest commit
History
History
History
68 lines (58 loc) · 1.79 KB
Breadcrumbs
python-kasa
/
.github
/
workflows
/
ci.yml
Copy path
File metadata and controls
68 lines (58 loc) · 1.79 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
name
:
CI
on
:
push
:
branches
:
["master", "patch"]
pull_request
:
branches
:
["master", "patch"]
workflow_dispatch
:
#
to allow manual re-runs
env
:
UV_VERSION
:
0.4.16
jobs
:
linting
:
name
:
"
Perform linting checks
"
runs-on
:
ubuntu-latest
strategy
:
matrix
:
python-version
:
["3.13"]
steps
:
-
name
:
"
Checkout source files
"
uses
:
"
actions/checkout@v4
"
-
name
:
Setup environment
uses
:
./.github/actions/setup
with
:
python-version
:
${{ matrix.python-version }}
cache-pre-commit
:
true
uv-version
:
${{ env.UV_VERSION }}
uv-install-options
:
"
--all-extras
"
-
name
:
"
Run pre-commit checks
"
run
:
|
uv run pre-commit run --all-files --verbose
tests
:
name
:
Python ${{ matrix.python-version}} on ${{ matrix.os }}${{ fromJSON('[" (extras)", ""]')[matrix.extras == ''] }}
needs
:
linting
runs-on
:
${{ matrix.os }}
strategy
:
matrix
:
python-version
:
["3.11", "3.12", "3.13"]
os
:
[ubuntu-latest, macos-latest, windows-latest]
extras
:
[false, true]
exclude
:
-
os
:
macos-latest
extras
:
true
-
os
:
windows-latest
extras
:
true
steps
:
-
uses
:
"
actions/checkout@v4
"
-
name
:
Setup environment
uses
:
./.github/actions/setup
with
:
python-version
:
${{ matrix.python-version }}
uv-version
:
${{ env.UV_VERSION }}
uv-install-options
:
${{ matrix.extras == true && '--all-extras' || '' }}
-
name
:
"
Run tests (with coverage)
"
run
:
|
uv run pytest -n auto --cov kasa --cov-report xml
-
name
:
"
Upload coverage to Codecov
"
uses
:
"
codecov/codecov-action@v4
"
with
:
token
:
${{ secrets.CODECOV_TOKEN }}
Back
|
FazBrowse Home
|
New Git URL