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:
Steven B.
2024-09-27 10:27:53 +01:00
committed by GitHub
parent 1ab08f454f
commit 038b6993ca
8 changed files with 67 additions and 87 deletions

View File

@@ -55,7 +55,8 @@ dev-dependencies = [
"coverage[toml]",
"pytest-timeout~=2.0",
"pytest-freezer~=0.4",
"mypy~=1.0"
"mypy~=1.0",
"pytest-xdist>=3.6.1",
]
@@ -105,6 +106,7 @@ markers = [
"requires_dummy: test requires dummy data to pass, skipped on real devices",
]
asyncio_mode = "auto"
asyncio_default_fixture_loop_scope = "function"
timeout = 10
[tool.doc8]