Skip to content

Commit 2e9bf9e

Browse files
authored
👷 Speed up the CI by shuffling the test matrix (#1815)
1 parent 1888fa2 commit 2e9bf9e

4 files changed

Lines changed: 19 additions & 13 deletions

File tree

‎.github/workflows/test.yml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,10 @@ jobs:
3232
- os: macos-latest
3333
python-version: "3.11"
3434
uv-resolution: highest
35-
- os: windows-latest
35+
- os: macos-latest
3636
python-version: "3.12"
3737
uv-resolution: lowest-direct
38-
- os: ubuntu-latest
38+
- os: windows-latest
3939
python-version: "3.13"
4040
uv-resolution: highest
4141
fail-fast: false

‎pyproject.toml‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,9 +80,9 @@ tests = [
8080
"mypy >=1.19.1",
8181
"ty >=0.0.25",
8282
"pytest >=9.0.0",
83-
"pytest-cov >=4.0.0",
84-
"pytest-sugar >=0.9.5",
85-
"pytest-xdist >=1.32.0",
83+
"pytest-cov >=7.0.0",
84+
"pytest-sugar >=1.0.0",
85+
"pytest-xdist >=3.6.1",
8686
"rich >=12.3.0",
8787
"ruff >=0.15.0",
8888
"shellingham >=1.3.0",

‎tests/test_types_file.py‎

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,8 +139,10 @@ def test_binary_stderr() -> None:
139139
result = subprocess.run(
140140
[
141141
sys.executable,
142-
"-c",
143-
"from tests.test_types_file import app; app()",
142+
"-m",
143+
"coverage",
144+
"run",
145+
__file__,
144146
"write-binary-stderr",
145147
],
146148
capture_output=True,
@@ -382,3 +384,7 @@ def isatty(self) -> bool:
382384
assert should_strip_ansi(stream=None, color=None) is True
383385
assert should_strip_ansi(stream=None, color=True) is False
384386
assert should_strip_ansi(stream=None, color=False) is True
387+
388+
389+
if __name__ == "__main__":
390+
app()

‎uv.lock‎

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)