Skip to content
Myr

👷 Speed up the CI by shuffling the test matrix (#1815)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Sofie Van Landeghem · committed by GitHub · parent 1888fa2 · Browse files · 4 files+19 added−13 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

4 files+19 added−13 removed

  • tests:+8 added−2 removed
  • other:+11 added−11 removed

4 files+19 added−13 removed

modified:.github/workflows/test.yml+2 added-2 removed
modified:tests/test_types_file.py+8 added-2 removed
137 unmodified lines
138def test_binary_stderr() -> None:139 result = subprocess.run(140 [141 sys.executable,142 "-c",143 "from tests.test_types_file import app; app()",142 "-m",143 "coverage",144 "run",145 __file__,146 "write-binary-stderr",147 ],148 capture_output=True,149 )
233 unmodified lines
383 monkeypatch.setattr(sys, "stdin", stdin)384 assert should_strip_ansi(stream=None, color=None) is True385 assert should_strip_ansi(stream=None, color=True) is False386 assert should_strip_ansi(stream=None, color=False) is True387388389if __name__ == "__main__":390 app()
modified:pyproject.toml+3 added-3 removed
78 unmodified lines
79 "coverage[toml] >=7.13",80 "mypy >=1.19.1",81 "ty >=0.0.25",82 "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",86 "rich >=12.3.0",87 "ruff >=0.15.0",88 "shellingham >=1.3.0",89]
141 unmodified lines
modified:uv.lock+6 added-6 removed
1866 unmodified lines
1867 { name = "mypy", specifier = ">=1.19.1" },1868 { name = "pillow", specifier = ">=11.3.0" },1869 { name = "prek", specifier = ">=0.3.2" },1870 { name = "pytest", specifier = ">=9.0.0" },1871 { name = "pytest-cov", specifier = ">=4.0.0" },1872 { name = "pytest-sugar", specifier = ">=0.9.5" },1873 { name = "pytest-xdist", specifier = ">=1.32.0" },1871 { name = "pytest-cov", specifier = ">=7.0.0" },1872 { name = "pytest-sugar", specifier = ">=1.0.0" },1873 { name = "pytest-xdist", specifier = ">=3.6.1" },1874 { name = "pyyaml", specifier = ">=5.3.1" },1875 { name = "rich", specifier = ">=12.3.0" },1876 { name = "ruff", specifier = ">=0.15.0" },1877 { name = "shellingham", specifier = ">=1.3.0" },
22 unmodified lines
1900tests = [1901 { name = "coverage", extras = ["toml"], specifier = ">=7.13" },1902 { name = "mypy", specifier = ">=1.19.1" },1903 { name = "pytest", specifier = ">=9.0.0" },1904 { name = "pytest-cov", specifier = ">=4.0.0" },1905 { name = "pytest-sugar", specifier = ">=0.9.5" },1906 { name = "pytest-xdist", specifier = ">=1.32.0" },1904 { name = "pytest-cov", specifier = ">=7.0.0" },1905 { name = "pytest-sugar", specifier = ">=1.0.0" },1906 { name = "pytest-xdist", specifier = ">=3.6.1" },1907 { name = "rich", specifier = ">=12.3.0" },1908 { name = "ruff", specifier = ">=0.15.0" },1909 { name = "shellingham", specifier = ">=1.3.0" },1910 { name = "ty", specifier = ">=0.0.25" },
120 unmodified lines