👷 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
Provenance
- Commit
2e9bf9e- Tree
e637dfa- Author
Sofie Van Landeghem <svlandeg@users.noreply.github.com>- Committer
GitHub <noreply@github.com>- Parent
1888fa2
4 files changed+19 added−13 removed
modified:.github/workflows/test.yml+2 added-2 removed
30 unmodified lines3132333435353637383839404142102 unmodified linesExpand all30 unmodified lines uv-resolution: lowest-direct - os: macos-latest python-version: "3.11" uv-resolution: highest - os: windows-latest - os: macos-latest python-version: "3.12" uv-resolution: lowest-direct - os: ubuntu-latest - os: windows-latest python-version: "3.13" uv-resolution: highest fail-fast: false runs-on: ${{ matrix.os }}102 unmodified linesExpand allmodified:tests/test_types_file.py+8 added-2 removed
137 unmodified lines138 def 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 lines383 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 True387+388+389+if __name__ == "__main__":390+ app()modified:pyproject.toml+3 added-3 removed
78 unmodified lines79 "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 linesmodified:uv.lock+6 added-6 removed
1866 unmodified lines1867 { 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 lines1900 tests = [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