@@ -19,16 +19,14 @@ jobs:
1919
2020 steps :
2121 - uses : " actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5" # v4.3.1
22- - uses : " actions /setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 " # v5.6.0
22+ - uses : " astral-sh /setup-uv@d0cc045d04ccac9d8b7881df0226f9e82c39688e " # v6
2323 with :
24+ enable-cache : true
2425 python-version : " ${{ matrix.python-version }}"
2526 - name : " Install dependencies"
26- run : |
27- python -m pip install --upgrade pip "poetry==2.0.1"
28- poetry install --extras docs
27+ run : uv sync --extra docs
2928 - name : " Run pre-commit hooks"
30- run : |
31- poetry run pre-commit run --all-files --verbose
29+ run : uv run pre-commit run --all-files --verbose
3230
3331 tests :
3432 name : " Python ${{ matrix.python-version}} on ${{ matrix.os }}"
@@ -43,16 +41,14 @@ jobs:
4341
4442 steps :
4543 - uses : " actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5" # v4.3.1
46- - uses : " actions /setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 " # v5.6.0
44+ - uses : " astral-sh /setup-uv@d0cc045d04ccac9d8b7881df0226f9e82c39688e " # v6
4745 with :
46+ enable-cache : true
4847 python-version : " ${{ matrix.python-version }}"
4948 - name : " Install dependencies"
50- run : |
51- python -m pip install --upgrade pip "poetry==2.0.1"
52- poetry install --all-extras
49+ run : uv sync --all-extras
5350 - name : " Run tests"
54- run : |
55- poetry run pytest --cov miio --cov-report xml
51+ run : uv run pytest --cov miio --cov-report xml
5652 - name : " Upload coverage to Codecov"
5753 uses : " codecov/codecov-action@0fb7174895f61a3b6b78fc075e0cd60383518dac" # v5.5.5
5854 with :
0 commit comments