mirror of
https://github.com/python-kasa/python-kasa.git
synced 2025-08-09 20:24:02 +00:00
Speed up and simplify github workflows (#1128)
- Enable parallel tests in the CI with pytest-xdist - Migrate to the official `astral-sh/setup-uv` github action - Call `pre-commit` run as a single job in CI instead of relisting each check - Use `uv` version 0.4.16 - Fix bug with pre-commit cache - Update `publish.yml` to use `astral-sh/setup-uv`
This commit is contained in:
@@ -32,7 +32,7 @@ def _get_subclasses(of_class):
|
||||
and module.__package__ != "kasa.interfaces"
|
||||
):
|
||||
subclasses.add((module.__package__ + "." + name, obj))
|
||||
return subclasses
|
||||
return sorted(subclasses)
|
||||
|
||||
|
||||
device_classes = pytest.mark.parametrize(
|
||||
|
@@ -481,7 +481,7 @@ def _get_subclasses(of_class):
|
||||
and name != "_deprecated_TPLinkSmartHomeProtocol"
|
||||
):
|
||||
subclasses.add((name, obj))
|
||||
return subclasses
|
||||
return sorted(subclasses)
|
||||
|
||||
|
||||
@pytest.mark.parametrize(
|
||||
|
Reference in New Issue
Block a user